|
@@ -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'
|
|
|
}
|
|
|
|