|
@@ -5,6 +5,7 @@ import { API_login, isTokenFlagAPI } from '@/store/action/A1List'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import { setTokenInfo } from '@/utils/storage'
|
|
|
import history from '@/utils/history'
|
|
|
+import { isLocal } from '@/utils/http'
|
|
|
function Login() {
|
|
|
const loginFu = useCallback(() => {
|
|
|
window.location.href = `https://dev.itfinspread.com:8003/#/sso?redirectUrl=${backUrl}`
|
|
@@ -21,7 +22,7 @@ function Login() {
|
|
|
MessageFu.success('登录成功')
|
|
|
// 用户信息存到本地
|
|
|
setTokenInfo(res.data)
|
|
|
- window.location.href = '/#/list'
|
|
|
+ window.location.href = `${isLocal ? '' : '/backstage'}/#/list`
|
|
|
} else {
|
|
|
MessageFu.warning('token为空')
|
|
|
setCode('')
|