diff --git a/src/App.vue b/src/App.vue index 6b78272..f4c17e1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,11 +17,15 @@ //在页面加载时读取localStorage里的状态信息 if (util.local.get(Setting.storeKey) ) { this.$store.replaceState(Object.assign({}, this.$store.state,util.local.get(Setting.storeKey))) + this.$store.system.replaceState(Object.assign({}, sessionStorage.getItem('systemData'))) } //在页面刷新时将vuex里的信息保存到localStorage里 window.addEventListener("beforeunload",()=>{ util.local.get(Setting.tokenKey) && util.local.set(Setting.storeKey,this.$store.state) + sessionStorage.setItem('systemData', this.$store.system.state) + console.log('????/') + console.log(sessionStorage.getItem('systemData')) }) } } diff --git a/src/api/api.js b/src/api/api.js index 60da40a..4a88966 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -3,8 +3,8 @@ import router from '../router'; // 创建axios实例 const service = axios.create({ // baseURL: "http://www.huorantech.cn:9000",//线上 - baseURL: "http://39.108.250.202:9000/", // 中台测试服 - // baseURL: "http://192.168.31.137:9000/", // 赓 + // baseURL: "http://39.108.250.202:9000/", // 中台测试服 + baseURL: "http://192.168.31.137:9000/", // 赓 // baseURL: "http://192.168.31.151:9000/", // 榕 // baseURL: "http://192.168.31.125:9000/", // 坤 // baseURL: 'http://39.108.250.202:9000', diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index 97a3a9e..708fd77 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -104,7 +104,7 @@
{{item.name}}