bill hai 1 ano
pai
achega
9462799a13
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/api/instance.ts

+ 3 - 2
src/api/instance.ts

@@ -25,8 +25,9 @@ export const {
 } = instance
 
 const gotoLogin = () => {
-  const loginHref = import.meta.env.DEV ? 'http://localhost:5174' : (params.app === appType.fire ? '/fire' : 'criminal')
-  location.href = loginHref + '?redirect=' + escape(location.href) + '#/login'
+  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'
 }
 
 addReqErrorHandler(err => {