bill 1 vuosi sitten
vanhempi
commit
9462799a13
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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 => {