star7th 6 жил өмнө
parent
commit
b63ac4d453

+ 1 - 1
web_src/index.html

@@ -18,7 +18,7 @@
   }
   </script>
   </head>
-  <body>
+  <body class="grey-bg">
     <div id="app"></div>
     <!-- built files will be auto injected -->
   </body>

+ 0 - 2
web_src/src/components/catalog/Index.vue

@@ -255,11 +255,9 @@ export default {
 
   mounted(){
     this.get_catalog();
-    this.set_bg_grey();
   },
   
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/item/Add.vue

@@ -157,10 +157,8 @@ export default {
   mounted() {
     this.lang = DocConfig.lang ;
     this.get_item_list();
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/item/Index.vue

@@ -374,11 +374,9 @@ export default {
     this.user_info();
     this.dragging();
     this.lang = DocConfig.lang ;
-    this.set_bg_grey();
   },
   beforeDestroy(){
     this.$message.closeAll();
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/item/Password.vue

@@ -88,10 +88,8 @@ export default {
       }
   },
   mounted() {
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/item/export/Index.vue

@@ -126,10 +126,8 @@ export default {
   mounted() {
     this.get_catalog(this.$route.params.item_id);
     this.item_id = this.$route.params.item_id ;
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/item/setting/Index.vue

@@ -94,10 +94,8 @@ export default {
   },
 
   mounted(){
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/page/Diff.vue

@@ -130,10 +130,8 @@ export default {
       
     })
 
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
   
 }

+ 0 - 2
web_src/src/components/team/Index.vue

@@ -161,10 +161,8 @@ export default {
 
   mounted(){
     this.geList();
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 3
web_src/src/components/user/Login.vue

@@ -104,8 +104,6 @@ export default {
   },
   mounted() {
     var that = this ;
-    /*给body添加类,设置背景色*/
-    this.set_bg_grey();
     this.get_user_info(function(response){
       if (response.data.error_code === 0 ) {
         let redirect = decodeURIComponent(that.$route.query.redirect || '/item/index');
@@ -118,7 +116,6 @@ export default {
     this.script_cron();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/user/Register.vue

@@ -90,10 +90,8 @@ export default {
       }
   },
   mounted() {
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/user/ResetPassword.vue

@@ -75,10 +75,8 @@ export default {
       }
   },
   mounted() {
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/user/ResetPasswordByUrl.vue

@@ -69,10 +69,8 @@ export default {
       }
   },
   mounted() {
-    this.set_bg_grey();
   },
   beforeDestroy(){
-    this.unset_bg_grey();
   }
 }
 </script>

+ 0 - 2
web_src/src/components/user/Setting.vue

@@ -194,11 +194,9 @@ export default {
   mounted(){
     
     this.get_user_info();
-    this.set_bg_grey();
   },
 
   beforeDestroy(){
-    this.unset_bg_grey();
   }
   
 }