浏览代码

版本不一样,重新登录

dujingxian 4 年之前
父节点
当前提交
ad81534f0f
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 1
      src/App.vue
  2. 1 1
      src/static/common.json

+ 4 - 1
src/App.vue

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

+ 1 - 1
src/static/common.json

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