소스 검색

修改跳转问题

bill 1 년 전
부모
커밋
12a271be18
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'
 }