|
@@ -299,7 +299,8 @@ const handleLogin = async params => {
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
})
|
|
|
// 登录成功后,跳转到指定的页面
|
|
// 登录成功后,跳转到指定的页面
|
|
|
- router.push('/home')
|
|
|
|
|
|
|
+ router.push(!tenantNameQuery.value?'/home':'/programming')
|
|
|
|
|
+
|
|
|
} else if (res.code === 1002000009) {
|
|
} else if (res.code === 1002000009) {
|
|
|
// 未授权状态,切换到短信验证码登录
|
|
// 未授权状态,切换到短信验证码登录
|
|
|
ElMessage.warning(res.msg || '登录IP未被授权,请使用手机号短信验证码登录!')
|
|
ElMessage.warning(res.msg || '登录IP未被授权,请使用手机号短信验证码登录!')
|
|
@@ -351,7 +352,7 @@ onMounted(() => {
|
|
|
// 检查登录状态,如果已登录则直接跳转到首页
|
|
// 检查登录状态,如果已登录则直接跳转到首页
|
|
|
if (storedStatus === 'true') {
|
|
if (storedStatus === 'true') {
|
|
|
isLoggedIn.value = true
|
|
isLoggedIn.value = true
|
|
|
- router.push('/home')
|
|
|
|
|
|
|
+ router.push(!tenantNameQuery.value?'/home':'/programming')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleKeyPress = (event) => {
|
|
const handleKeyPress = (event) => {
|