initAuthDef.ts 470 B

123456789101112131415161718192021
  1. import { Dict_Apis } from "@/dict";
  2. import { initAuth } from "@queenjs-modules/auth";
  3. export function initAuthDef() {
  4. const auth = initAuth({
  5. config: {
  6. httpConfig: {
  7. baseURL: Dict_Apis.auth,
  8. },
  9. key: "queentreesku3d",
  10. loginPath: "/login",
  11. loginJumpPath: "/workbench",
  12. logoutJumpPath: "/login",
  13. needCompanyLogin: false,
  14. needRegister: true,
  15. needResetPwd: true,
  16. },
  17. });
  18. auth.actions.initUser();
  19. }