Browse Source

版本不一样,重新登录

dujingxian 4 years ago
parent
commit
dcc09192eb
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/App.vue
  2. 1 1
      src/static/common.json

+ 2 - 1
src/App.vue

@@ -68,11 +68,12 @@ import login from "./store/module/login";
             if(clientVersion !== version){
                 // configJson.version = clientVersion;
                 console.log('configJson', configJson);
-                localStorage.setItem('_version_', version)
                 // window.location.reload()
                 let  storage = window.localStorage;
                 storage.clear()
                 this.$router.push('/login')
+                
+                localStorage.setItem('_version_', version)
             }
             // setTimeout(() => {
             //     this.checkVersion()

+ 1 - 1
src/static/common.json

@@ -1,3 +1,3 @@
 {
-  "version": "1.4.6"
+  "version": "1.4.7"
 }