2025-08-04 16:09:05 +08:00
|
|
|
<template>
|
2025-08-06 14:52:34 +08:00
|
|
|
<div id="app">
|
|
|
|
|
<router-view />
|
|
|
|
|
<theme-picker />
|
|
|
|
|
</div>
|
2025-08-04 16:09:05 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-08-06 14:52:34 +08:00
|
|
|
import ThemePicker from '@/components/ThemePicker'
|
2025-08-04 16:09:05 +08:00
|
|
|
import { mapActions } from 'vuex'
|
|
|
|
|
import { get } from '@/utils/config'
|
|
|
|
|
// import AlertNotification from "@/views/warning/AlertNotification.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
2025-08-06 14:52:34 +08:00
|
|
|
name: 'App',
|
|
|
|
|
components: { ThemePicker },
|
|
|
|
|
created() {
|
2025-08-16 19:01:53 +08:00
|
|
|
get()
|
2025-08-06 14:52:34 +08:00
|
|
|
},
|
|
|
|
|
metaInfo() {
|
|
|
|
|
return {
|
|
|
|
|
title:
|
|
|
|
|
this.$store.state.settings.dynamicTitle &&
|
|
|
|
|
this.$store.state.settings.title,
|
|
|
|
|
titleTemplate: (title) => {
|
|
|
|
|
return title
|
|
|
|
|
? `${title} - ${process.env.VUE_APP_TITLE}`
|
|
|
|
|
: process.env.VUE_APP_TITLE
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
2025-08-04 16:09:05 +08:00
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
#app .theme-picker {
|
2025-08-06 14:52:34 +08:00
|
|
|
display: none;
|
2025-08-04 16:09:05 +08:00
|
|
|
}
|
|
|
|
|
</style>
|