|
@@ -1,25 +1,5 @@
|
|
|
import { startApp } from "@/App";
|
|
|
-import { Dict_Apis } from "@/dict";
|
|
|
-import { initAuth } from "@queenjs-modules/auth";
|
|
|
+import { initAuthDef } from "@/hooks/initAuthDef";
|
|
|
import router from "./router";
|
|
|
|
|
|
-function initLocalAuth() {
|
|
|
- const auth = initAuth({
|
|
|
- config: {
|
|
|
- httpConfig: {
|
|
|
- baseURL: Dict_Apis.auth,
|
|
|
- },
|
|
|
- key: "queentreesku3d",
|
|
|
- loginPath: "/login",
|
|
|
- loginJumpPath: "/",
|
|
|
- logoutJumpPath: "/login",
|
|
|
-
|
|
|
- needCompanyLogin: false,
|
|
|
- needRegister: true,
|
|
|
- needResetPwd: true,
|
|
|
- },
|
|
|
- });
|
|
|
- auth.actions.initUser();
|
|
|
-}
|
|
|
-
|
|
|
-startApp(router, [initLocalAuth]);
|
|
|
+startApp(router, [initAuthDef]);
|