baseurl fix
parent
4364c463c0
commit
545e1663ab
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="['layout-sidebar', { active: active }]">
|
<div :class="['layout-sidebar', { active: active }]">
|
||||||
<router-link to="/" class="logo">
|
<router-link to="/" class="logo">
|
||||||
<img :src="'/demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" />
|
<img :src="baseUrl + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" />
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="layout-sidebar-filter p-fluid">
|
<div class="layout-sidebar-filter p-fluid">
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
|
@ -79,7 +79,8 @@ export default {
|
||||||
menu: menudata.data,
|
menu: menudata.data,
|
||||||
filteredRoutes: null,
|
filteredRoutes: null,
|
||||||
selectedRoute: null,
|
selectedRoute: null,
|
||||||
routes: []
|
routes: [],
|
||||||
|
baseUrl: '/'
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -96,6 +97,8 @@ export default {
|
||||||
|
|
||||||
this.routes.push(childRoute);
|
this.routes.push(childRoute);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleSubmenu(event, name) {
|
toggleSubmenu(event, name) {
|
||||||
|
|
|
@ -312,7 +312,7 @@ export default {
|
||||||
container: null,
|
container: null,
|
||||||
mounted() {
|
mounted() {
|
||||||
this.bindScrollListener();
|
this.bindScrollListener();
|
||||||
this.baseUrl = process.dev ? '/' : '/primevue/nuxt';
|
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
|
||||||
},
|
},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
if (this.scrollListener) {
|
if (this.scrollListener) {
|
||||||
|
|
Loading…
Reference in New Issue