qymljy преди 1 година
родител
ревизия
eb0eaca015
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      src/components/newLayout/index.vue

+ 6 - 2
src/components/newLayout/index.vue

@@ -108,8 +108,12 @@ export default {
   },
   mounted() {
 
-    if (JSON.parse(sessionStorage.getItem('active_password')) == '1' && JSON.parse(sessionStorage.getItem('password')) != '1' && JSON.parse(sessionStorage.getItem('active_account')).usertype != 0 && JSON.parse(sessionStorage.getItem('active_account')).usertype != 1){
-      this.dialogVisible = true
+    if (JSON.parse(sessionStorage.getItem('active_password')) == '1' && JSON.parse(sessionStorage.getItem('password')) != '1'){
+      if (JSON.parse(sessionStorage.getItem('active_account')).usertype == 0 && JSON.parse(sessionStorage.getItem('active_account')).usertype == 1 && JSON.parse(sessionStorage.getItem('active_account')).siteid == 'HY'){
+        this.dialogVisible = false
+      }else {
+        this.dialogVisible = true
+      }
     }
     /*this.debouned()*/
    /* console.log('长度')