cl
2024-07-08 e4f9cb3d30a5ba10f4f6390facef7cd23b610cee
提交 | 用户 | 时间
0ca254 1 <template>
A 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>