Browse Source

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

RuoYi 2 years ago
parent
commit
bf83fe568b
1 changed files with 12 additions and 3 deletions
  1. 12 3
      ruoyi-ui/src/App.vue

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

@@ -1,12 +1,16 @@
 <template>
   <div id="app">
     <router-view />
+    <theme-picker />
   </div>
 </template>
 
 <script>
-export default  {
-  name:  'App',
+import ThemePicker from "@/components/ThemePicker";
+
+export default {
+  name: "App",
+  components: { ThemePicker },
     metaInfo() {
         return {
             title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
@@ -15,5 +19,10 @@ export default  {
             }
         }
     }
-}
+};
 </script>
+<style scoped>
+#app .theme-picker {
+  display: none;
+}
+</style>