star7th 6 years ago
parent
commit
2ba9a33c37

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

@@ -223,8 +223,6 @@ export default {
   },
   beforeDestroy(){
     this.$message.closeAll();
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
   }
 }
 </script>

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

@@ -172,8 +172,6 @@ export default {
   },
   beforeDestroy(){
     this.$message.closeAll();
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
   }
 }
 </script>

+ 1 - 2
web_src/src/components/admin/user/Index.vue

@@ -257,8 +257,7 @@ export default {
   },
   beforeDestroy(){
     this.$message.closeAll();
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
+
   }
 }
 </script>

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

@@ -103,8 +103,6 @@
   },
   beforeDestroy(){
     this.$message.closeAll();
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
     document.title = "ShowDoc" ;
   }
 };

+ 2 - 4
web_src/src/components/notice/Index.vue

@@ -154,12 +154,10 @@ export default {
   },
 
   beforeCreate() {
-    /*给body添加类,设置背景色*/
-    document.getElementsByTagName("body")[0].className="grey-bg";
+
   },
   beforeDestroy(){
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
+
   }
   
 }

+ 2 - 4
web_src/src/components/page/Index.vue

@@ -167,13 +167,11 @@ export default {
         this.AdaptToMobile();
       });
     }
-    /*给body添加类,设置背景色*/
-    document.getElementsByTagName("body")[0].className="grey-bg";
+
 
   },
   beforeDestroy(){
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
+
   }
 }
 </script>