|
@@ -28,9 +28,9 @@ export const gotoLogin = () => {
|
|
? 'https://test.4dkankan.com'
|
|
? 'https://test.4dkankan.com'
|
|
: 'https://www.4dkankan.com'
|
|
: 'https://www.4dkankan.com'
|
|
|
|
|
|
- // location.replace(
|
|
|
|
- // loginHref + '?redirect=' + escape(location.href) + '#/login/login'
|
|
|
|
- // )
|
|
|
|
|
|
+ location.replace(
|
|
|
|
+ loginHref + '?redirect=' + escape(location.href) + '#/login/login'
|
|
|
|
+ )
|
|
}
|
|
}
|
|
|
|
|
|
const tokenInvalid = () => {
|
|
const tokenInvalid = () => {
|
|
@@ -63,6 +63,7 @@ addHook({
|
|
after: config => config && hideLoading()
|
|
after: config => config && hideLoading()
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+console.log(baseURL)
|
|
setDefaultURI(baseURL)
|
|
setDefaultURI(baseURL)
|
|
|
|
|
|
if (!token) {
|
|
if (!token) {
|