admin
2024-06-14 18edcfa9645d7cc8774be680942bc6f4d59f6c48
提交 | 用户 | 时间
a57dc2 1 <template>
W 2   <div id="app">
3     <router-view />
4     <theme-picker />
5   </div>
6 </template>
7
8 <script>
9 import ThemePicker from "@/components/ThemePicker";
10
11 export default {
12   name: "App",
13   components: { ThemePicker },
14     metaInfo() {
15         return {
16             title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
17             titleTemplate: title => {
18                 return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
19             }
20         }
21     }
22 };
23 </script>
24 <style scoped>
25 #app .theme-picker {
26   display: none;
27 }
28 </style>