diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f57617..c2d4b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 1.0.0 (2022-03-04) +# 1.0.0 (2022-03-07) ### 🌟 新功能 范围|描述|commitId @@ -73,6 +73,7 @@ - | 注册、用户协议 | [68e9189](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/68e9189) - | 状态栏、导入 | [f30bac2](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/f30bac2) - | app.vue | [970cf9a](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/970cf9a) + - | app导出 | [d9ea2e8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d9ea2e8) - | app端请求路径不对 | [b31fa14](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/b31fa14) deliver 交付物 | 点击交付物链接webview打开链接 | [daa59f1](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/daa59f1) - | first commit | [8dc26de](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/8dc26de) diff --git a/pages/index/index.vue b/pages/index/index.vue index 40c7f71..9b5fce9 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -139,7 +139,9 @@ store.commit('socket/uploadRingData', []); store.commit('socket/uploadRemindData', []); uni.$storage.setStorageSync('anyringToken', ''); + uni.$storage.setStorageSync('refreshToken', ''); uni.$storage.setStorageSync('user', ''); + getProjects(); } diff --git a/store/socket/actions.js b/store/socket/actions.js index c3896ce..884a3e0 100644 --- a/store/socket/actions.js +++ b/store/socket/actions.js @@ -22,10 +22,15 @@ const actions = { }, // websocket发送channelId进行认证 - auth({ dispatch }) { - const token = uni.$storage.getStorageSync('anyringToken'); - const data = { type: 'Auth', data: { token } }; - dispatch('sendSocketMessage', data); + auth({ dispatch }) { + let timer = setInterval(() => { + const token = uni.$storage.getStorageSync('anyringToken'); + if (token) { + const data = { type: 'Auth', data: { token } }; + dispatch('sendSocketMessage', data); + clearInterval(timer); + } + }, 1000); }, // 监听ws打开 diff --git a/store/task/actions.js b/store/task/actions.js index ecd7714..24509bd 100644 --- a/store/task/actions.js +++ b/store/task/actions.js @@ -7,7 +7,7 @@ const actions = { getPermanent({ commit, state }, param) { // if (state.hasPermanent) return; uni.$catchReq.getPermanent(param, (err, data) => { - commit('setHasPermanent', true); + // commit('setHasPermanent', true); if (err) { console.error('err: ', err); } else {