sh_real_name_system_web/src/App.vue

39 lines
866 B
Vue
Raw Normal View History

2025-08-04 16:09:05 +08:00
<template>
<div id="app">
<router-view />
<theme-picker />
</div>
2025-08-04 16:09:05 +08:00
</template>
<script>
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 {
name: 'App',
components: { ThemePicker },
created() {
2025-08-16 19:01:53 +08:00
get()
},
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 {
display: none;
2025-08-04 16:09:05 +08:00
}
</style>