-
懒羊羊
2024-04-12 d5d31b9096d6e50cdac2069426b19b4507a91237
提交 | 用户 | 时间
e57a89 1 <template>
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>