3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

fix: webpack dev server + index fallback for prod serve.js

This commit is contained in:
Dragory 2024-03-30 13:33:29 +00:00
parent c89c5ea430
commit 3cad4d319e
No known key found for this signature in database
6 changed files with 22 additions and 7 deletions

View file

@ -4,7 +4,7 @@
<nav class="flex items-stretch flex-wrap pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl mb-8">
<div class="flex-full md:flex-initial flex items-center">
<img class="w-10 mr-5" src="../../img/logo.png" alt="" aria-hidden="true">
<img class="w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
<router-link to="/dashboard">
<h1 class="font-semibold">Zeppelin Dashboard</h1>
@ -48,6 +48,7 @@
<script>
import Title from "../Title.vue";
import logoUrl from "../../img/logo.png";
export default {
components: {
@ -59,5 +60,8 @@
window.location.pathname = '/';
}
},
data() {
return { logoUrl };
},
};
</script>

View file

@ -5,7 +5,7 @@
<!-- Top bar -->
<nav class="flex items-stretch pl-4 pr-2 py-1 border border-gray-700 rounded bg-gray-800 shadow-xl">
<div class="flex-initial flex items-center">
<img class="flex-auto w-10 mr-5" src="../../img/logo.png" alt="" aria-hidden="true">
<img class="flex-auto w-10 mr-5" :src="logoUrl" alt="" aria-hidden="true">
<router-link to="/docs">
<h1 class="flex-auto font-semibold">Zeppelin Documentation</h1>
@ -50,10 +50,10 @@
</template>
<script lang="ts">
import Vue from "vue";
import {mapState} from "vuex";
import Menu from 'vue-material-design-icons/Menu.vue';
import Title from "../Title.vue";
import logoUrl from "../../img/logo.png";
type TMenuItem = {
to: string;
@ -131,7 +131,8 @@
data() {
return {
mobileMenuOpen: false
mobileMenuOpen: false,
logoUrl,
};
},