wangfumin il y a 3 mois
Parent
commit
b0f8ca599d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/api/instance.ts

+ 2 - 2
src/api/instance.ts

@@ -27,8 +27,8 @@ export const {
 } = instance;
 
 const gotoLogin = () => {
-  // const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : appBackRoot[params.app]
-  // location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
+  const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : appBackRoot[params.app]
+  location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
   // if (import.meta.env.DEV) {
     // GAxios.post("/service/manage/login", {
     //   password: "MRinIEn3ExMjM0NTY=Q5Lm39urQWzN7k4oCG",