Commit 89a0edd8 authored by 白舜's avatar 白舜 🎱

fix: 用户登录状态检测

parent 01bcd4b8
...@@ -113,13 +113,15 @@ export default { ...@@ -113,13 +113,15 @@ export default {
}, },
created() { created() {
// this.initMsg() // this.initMsg()
// 用户登录状态有效检测
setInterval(() => {
$axios.get("/apaas/system/v5/user/login/check");
}, 15 * 1000);
}, },
mounted() { mounted() {
// this.getSysOptions(); // this.getSysOptions();
// 用户登录状态有效检测
if (this.userInfo) {
setInterval(() => {
$axios.get("/apaas/system/v5/user/login/check");
}, 15 * 1000);
}
}, },
methods: { methods: {
openMsg(data) { openMsg(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment