Przeglądaj źródła

修改跳转问题

bill 1 rok temu
rodzic
commit
12a271be18
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/api/instance.ts

+ 1 - 1
src/api/instance.ts

@@ -25,7 +25,7 @@ export const {
 } = instance
 
 const gotoLogin = () => {
-  const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : '/' + location.pathname
+  const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : location.pathname
   location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
 }