8 lines
359 B
JavaScript
8 lines
359 B
JavaScript
|
const $appState = {
|
||
|
install: (Vue, options) => {
|
||
|
Vue.config.globalProperties.$appState = reactive({theme: 'lara-light-blue', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: process.env.NODE_ENV === 'production', announcement: {}});
|
||
|
},
|
||
|
}
|
||
|
export default defineNuxtPlugin((nuxtApp) => {
|
||
|
nuxtApp.vueApp.use($appState);
|
||
|
});
|