axiosNotice.ts 375 B

1234567891011121314
  1. import { throttle } from "lodash";
  2. import { message } from "ant-design-vue";
  3. // import { doLogout } from "@/api/markPage";
  4. export const notifyInvalidTokenThrottled = throttle(() => {
  5. message.error({
  6. content: "登录失效,请重新登录!",
  7. duration: 10,
  8. });
  9. // setTimeout(() => {
  10. // doLogout();
  11. // }, 3000);
  12. console.log("登录失效");
  13. }, 1000);