Sfoglia il codice sorgente

修复主题颜色在Drawer组件不会加载问题(I5VCF0)

RuoYi 3 anni fa
parent
commit
65cf05fddb
1 ha cambiato i file con 12 aggiunte e 3 eliminazioni
  1. 12 3
      ruoyi-ui/src/App.vue

+ 12 - 3
ruoyi-ui/src/App.vue

@@ -1,12 +1,16 @@
1
 <template>
1
 <template>
2
   <div id="app">
2
   <div id="app">
3
     <router-view />
3
     <router-view />
4
+    <theme-picker />
4
   </div>
5
   </div>
5
 </template>
6
 </template>
6
 
7
 
7
 <script>
8
 <script>
8
-export default  {
9
-  name:  'App',
9
+import ThemePicker from "@/components/ThemePicker";
10
+
11
+export default {
12
+  name: "App",
13
+  components: { ThemePicker },
10
     metaInfo() {
14
     metaInfo() {
11
         return {
15
         return {
12
             title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
16
             title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
@@ -15,5 +19,10 @@ export default  {
15
             }
19
             }
16
         }
20
         }
17
     }
21
     }
18
-}
22
+};
19
 </script>
23
 </script>
24
+<style scoped>
25
+#app .theme-picker {
26
+  display: none;
27
+}
28
+</style>