star7th 6 лет назад
Родитель
Сommit
a61a7bec88
1 измененных файлов с 2 добавлено и 3 удалено
  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>