liuhj 1 day ago
parent
commit
62097873e9
2 changed files with 9 additions and 1 deletions
  1. 6 0
      src/components/Login.vue
  2. 3 1
      src/components/home.vue

+ 6 - 0
src/components/Login.vue

@@ -106,6 +106,12 @@ export default {
         },
         //登录
         Login() {
+            if (this.usernum!='051') {
+                return this.$message({
+                    message: "oa系统整改",
+                    type: 'warning'
+                });
+            }
             var homepage = "";
             if (this.usernum == "" || this.password == "") {
                 this.$message({

+ 3 - 1
src/components/home.vue

@@ -714,7 +714,9 @@ export default {
     this.token=JSON.parse(localStorage.getItem('userinif')).token;
     this.userinif = JSON.parse(localStorage.getItem('userinif'));
     this.PotsMessageUnreadTotalCount();
-    
+    if (this.userId!=21) {
+        localStorage.clear();
+    }
     // this.startConnection();
   },
   computed: {