Browse Source

fix: 未登录时查询成员列表出错,导致角色任务获取出错问题

test2
xuesinan 4 years ago
parent
commit
04fddb7293
  1. 3
      CHANGELOG.md
  2. 2
      pages/index/index.vue
  3. 5
      store/socket/actions.js
  4. 2
      store/task/actions.js

3
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)

2
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();
}
</script>

5
store/socket/actions.js

@ -23,9 +23,14 @@ const actions = {
// websocket发送channelId进行认证
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打开

2
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 {

Loading…
Cancel
Save