浏览代码

加回跳转

wangfumin 3 月之前
父节点
当前提交
b0f8ca599d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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",