|
@@ -1,11 +1,13 @@
|
|
import Vue from "vue";
|
|
import Vue from "vue";
|
|
import { throttle } from "lodash-es";
|
|
import { throttle } from "lodash-es";
|
|
import { message } from "ant-design-vue";
|
|
import { message } from "ant-design-vue";
|
|
|
|
+import { doLogout } from "@/api/markPage";
|
|
|
|
|
|
export const notifyInvalidTokenThrottled = throttle(() => {
|
|
export const notifyInvalidTokenThrottled = throttle(() => {
|
|
message.error({
|
|
message.error({
|
|
content: "登录失效,请重新登录!",
|
|
content: "登录失效,请重新登录!",
|
|
duration: 10,
|
|
duration: 10,
|
|
});
|
|
});
|
|
|
|
+ doLogout();
|
|
console.log("登录失效");
|
|
console.log("登录失效");
|
|
}, 1000);
|
|
}, 1000);
|