Ligtht mode updats

This commit is contained in:
Cagatay Civici 2023-10-10 08:41:15 +03:00
parent 3ffd5adb52
commit c30cd4e6dc
8 changed files with 55 additions and 75 deletions

19
app.vue
View file

@ -1,5 +1,5 @@
<template>
<NuxtLayout :name="layout">
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
@ -12,23 +12,6 @@ export default {
themeChangeListener: null,
newsActivate: null,
newsService: null,
data() {
return {
layout: 'custom'
};
},
watch: {
$route: {
immediate: true,
handler(to) {
if (to.name === 'index') {
this.layout = 'custom';
} else {
this.layout = 'default';
}
}
}
},
mounted() {
this.newsActivate = () => {
this.$appState.announcement = News;