bill 1 year ago
parent
commit
2b3f7be0e3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/api/instance.ts

+ 1 - 2
src/api/instance.ts

@@ -26,8 +26,7 @@ export const {
 
 
 const gotoLogin = () => {
 const gotoLogin = () => {
   const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : (params.app === appType.fire ? '/fire' : '/criminal')
   const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : (params.app === appType.fire ? '/fire' : '/criminal')
-  console.error(loginHref + '?redirect=' + escape(location.href) + '#/login')
-  // location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
+  location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
 }
 }
 
 
 addReqErrorHandler(err => {
 addReqErrorHandler(err => {