star7th 6 vuotta sitten
vanhempi
commit
a61a7bec88
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  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>