mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-21 16:00:31 +00:00
no message
This commit is contained in:
parent
c53d7a5dd2
commit
3331370d14
@ -261,12 +261,16 @@ export default {
|
|||||||
console.log('ws', this.ws, this.ws ? this.ws.readyState : null);
|
console.log('ws', this.ws, this.ws ? this.ws.readyState : null);
|
||||||
}
|
}
|
||||||
if (num > 0) {
|
if (num > 0) {
|
||||||
this.$store.dispatch("call", {
|
|
||||||
url: 'users/ws/exist',
|
|
||||||
}).catch(_ => {
|
|
||||||
this.$store.dispatch("websocketConnection");
|
|
||||||
});
|
|
||||||
this.$store.dispatch("getBasicData", 1000)
|
this.$store.dispatch("getBasicData", 1000)
|
||||||
|
if (this.ws === null) {
|
||||||
|
this.$store.dispatch("websocketConnection");
|
||||||
|
} else {
|
||||||
|
this.$store.dispatch("call", {
|
||||||
|
url: 'users/ws/exist',
|
||||||
|
}).catch(_ => {
|
||||||
|
this.$store.dispatch("websocketConnection");
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -679,7 +679,7 @@ export default {
|
|||||||
|
|
||||||
wsOpenNum(num) {
|
wsOpenNum(num) {
|
||||||
if (num <= 1) return
|
if (num <= 1) return
|
||||||
this.$store.dispatch("getBasicData", 1000).then(this.getReportUnread)
|
this.$store.dispatch("getBasicData", 600).then(this.getReportUnread)
|
||||||
},
|
},
|
||||||
|
|
||||||
workReportShow(show) {
|
workReportShow(show) {
|
||||||
|
|||||||
@ -660,7 +660,9 @@ export default {
|
|||||||
wsOpenNum(num) {
|
wsOpenNum(num) {
|
||||||
if (num <= 1) return
|
if (num <= 1) return
|
||||||
this.wsOpenTimeout && clearTimeout(this.wsOpenTimeout)
|
this.wsOpenTimeout && clearTimeout(this.wsOpenTimeout)
|
||||||
this.wsOpenTimeout = setTimeout(this.getFileList, 5000)
|
this.wsOpenTimeout = setTimeout(() => {
|
||||||
|
this.$route.name == 'manage-file' && this.getFileList();
|
||||||
|
}, 5000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -314,7 +314,7 @@ export default {
|
|||||||
state.userToken = userInfo.token;
|
state.userToken = userInfo.token;
|
||||||
state.userIsAdmin = $A.inArray('admin', userInfo.identity);
|
state.userIsAdmin = $A.inArray('admin', userInfo.identity);
|
||||||
$A.setStorage("userInfo", state.userInfo);
|
$A.setStorage("userInfo", state.userInfo);
|
||||||
dispatch("getBasicData");
|
dispatch("getBasicData", null);
|
||||||
resolve()
|
resolve()
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user