Explorar el Código

业务数据大屏

qymljy hace 1 año
padre
commit
9ab7a11021
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/login/login.vue

+ 2 - 1
src/views/login/login.vue

@@ -318,7 +318,8 @@ export default {
           this.basicData.query_userauth().then(() => {
             this.basicData.querySite_Parameter();
             let usertype = JSON.parse(sessionStorage.getItem('active_account')).usertype
-            if (usertype == 1 || usertype == 0){
+            let siteid = JSON.parse(sessionStorage.getItem('active_account')).siteid
+            if ((usertype == 1 || usertype == 0) && siteid == 'HY' ){
               this.$router.push('/serviceDataScreen')
             }else {
               this.$router.push({ path: "/main" });