image path fix

This commit is contained in:
Tuğçe Küçükoğlu 2022-12-09 23:47:59 +03:00
parent e772587fbc
commit 60d0fb6d1a
24 changed files with 224 additions and 145 deletions

View file

@ -1,7 +1,7 @@
<template>
<section :ref="containerRef" :class="['landing-header pad-section', { 'landing-header-active': menuActive }]">
<span>
<img :src="'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
<img :src="baseUrl + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
</span>
<div class="flex align-items-center">
@ -54,13 +54,15 @@ export default {
emits: ['theme-toggle'],
data() {
return {
menuActive: false
menuActive: false,
baseUrl: '/'
};
},
scrollListener: null,
container: null,
mounted() {
this.bindScrollListener();
this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
beforeUnmount() {
if (this.scrollListener) {