baseurl fix

pull/3420/head
Tuğçe Küçükoğlu 2022-12-09 17:20:47 +03:00
parent 4364c463c0
commit 545e1663ab
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<template>
<div :class="['layout-sidebar', { active: active }]">
<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>
<div class="layout-sidebar-filter p-fluid">
<AutoComplete
@ -79,7 +79,8 @@ export default {
menu: menudata.data,
filteredRoutes: null,
selectedRoute: null,
routes: []
routes: [],
baseUrl: '/'
};
},
mounted() {
@ -96,6 +97,8 @@ export default {
this.routes.push(childRoute);
});
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
methods: {
toggleSubmenu(event, name) {

View File

@ -312,7 +312,7 @@ export default {
container: null,
mounted() {
this.bindScrollListener();
this.baseUrl = process.dev ? '/' : '/primevue/nuxt';
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
beforeUnmount() {
if (this.scrollListener) {