index.ts 213 B

123456789
  1. import { removeTokenInfo } from "@dage/pc-components";
  2. import { logoutApi } from "@/api";
  3. export const logout = async () => {
  4. await logoutApi();
  5. removeTokenInfo();
  6. globalThis.location.href = "#/login";
  7. };