mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Removed code duplication and get baseURL from nuxt runtime
This commit is contained in:
parent
0c840beded
commit
06df25c7cc
34 changed files with 215 additions and 244 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<section :ref="containerRef" :class="['landing-header pad-section', { 'landing-header-active': menuActive }]">
|
||||
<span>
|
||||
<img :src="baseUrl + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
|
||||
<img :src="$config.public.contextPath + 'demo/images/primevue-logo-' + `${$appState.darkTheme ? 'light' : 'dark'}` + '.svg'" alt="primevue logo" class="landing-header-logo" />
|
||||
</span>
|
||||
|
||||
<div class="flex align-items-center">
|
||||
|
@ -54,8 +54,7 @@ export default {
|
|||
emits: ['theme-toggle'],
|
||||
data() {
|
||||
return {
|
||||
menuActive: false,
|
||||
baseUrl: process.dev ? '/' : '/primevue-nuxt/'
|
||||
menuActive: false
|
||||
};
|
||||
},
|
||||
scrollListener: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue