فهرست منبع

Merge branch 'blueBranch' into allTestUrgent

# Conflicts:
#	src/views/login/login.vue
qymljy 1 سال پیش
والد
کامیت
642bddcf5e
3فایلهای تغییر یافته به همراه6 افزوده شده و 7 حذف شده
  1. 3 6
      src/HManagement/serviceDataScreen/index.vue
  2. 1 1
      src/store/index.js
  3. 2 0
      src/views/login/login.vue

+ 3 - 6
src/HManagement/serviceDataScreen/index.vue

@@ -514,12 +514,9 @@ export default {
       this.dialogVisible = true
       this.dialogVisible = true
     },
     },
     handleBeforeunload(){
     handleBeforeunload(){
-      setTimeout(()=>{
-        console.log('退出全屏刷新页面******')
-        this.$refs.fullRef.backFullscreen()
-        // this.$router.push('/message')
-      },1000)
-
+      console.log('退出全屏刷新页面******')
+      sessionStorage.setItem('isFull','0')
+      this.$refs.fullRef.backFullscreen()
     }
     }
   },
   },
   created() {
   created() {

+ 1 - 1
src/store/index.js

@@ -103,7 +103,7 @@ export default new Vuex.Store({
       state.sys_modules = data
       state.sys_modules = data
     },
     },
     setAppMenu (state,data) {
     setAppMenu (state,data) {
-      if (window.location.hash.substring(1) === '/serviceDataScreen'){
+      if (window.location.hash.substring(1) === '/serviceDataScreen'  && sessionStorage.getItem('isFull') != 1){
         router.push('/message')
         router.push('/message')
       }else {
       }else {
         state.menuApp = data
         state.menuApp = data

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

@@ -329,6 +329,7 @@ export default {
               sessionStorage.getItem("active_account")
               sessionStorage.getItem("active_account")
             ).siteid;
             ).siteid;
             if ((usertype == 1 || usertype == 0) && (siteid == "HY" || siteid == "YOSTEST1")) {
             if ((usertype == 1 || usertype == 0) && (siteid == "HY" || siteid == "YOSTEST1")) {
+              sessionStorage.setItem('isFull','1')
               this.$router.push("/serviceDataScreen");
               this.$router.push("/serviceDataScreen");
             } else {
             } else {
               this.$router.push({ path: "/main" });
               this.$router.push({ path: "/main" });
@@ -355,6 +356,7 @@ export default {
         id: 10026401,
         id: 10026401,
       });
       });
       this.langusge = res.data;
       this.langusge = res.data;
+      console.log("langusge", this.langusge);
       this.nowType =
       this.nowType =
         localStorage.getItem("lang") && localStorage.getItem("lang") !== null
         localStorage.getItem("lang") && localStorage.getItem("lang") !== null
           ? localStorage.getItem("lang")
           ? localStorage.getItem("lang")