star7th 6 years ago
parent
commit
a61a7bec88
1 changed files with 2 additions and 3 deletions
  1. 2 3
      web_src/src/components/admin/Index.vue

+ 2 - 3
web_src/src/components/admin/Index.vue

@@ -167,12 +167,11 @@ export default {
   },
   mounted () {
     this.check_upadte();
-    
+    this.unset_bg_grey();
   },
   beforeDestroy(){
     this.$message.closeAll();
-    /*去掉添加的背景色*/
-    document.body.removeAttribute("class","grey-bg");
+    this.set_bg_grey();
   }
 }
 </script>