|
|
@ -241,16 +241,6 @@ |
|
|
|
// 登录 |
|
|
|
const handleLogin = async () => { |
|
|
|
console.log('登录-185') |
|
|
|
if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){ |
|
|
|
await ElMessageBox.alert( |
|
|
|
'<strong>系统迁移,请移步至</strong>' + |
|
|
|
`<a href=${getSystermUpdateUrl()} target="_blank">${getSystermUpdateUrl()}</a>`, |
|
|
|
'重要提示', |
|
|
|
{ |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
loginLoading.value = true |
|
|
|
|
|
|
|
try { |
|
|
@ -297,6 +287,16 @@ |
|
|
|
authUtil.removeLoginForm() |
|
|
|
} |
|
|
|
authUtil.setToken(res) |
|
|
|
if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){ |
|
|
|
await ElMessageBox.alert( |
|
|
|
'<strong>系统迁移,请移步至</strong>' + |
|
|
|
`<a href=${getSystermUpdateUrl()} target="_blank">${getSystermUpdateUrl()}</a>`, |
|
|
|
'重要提示', |
|
|
|
{ |
|
|
|
dangerouslyUseHTMLString: true, |
|
|
|
} |
|
|
|
) |
|
|
|
} |
|
|
|
if (!redirect.value) { |
|
|
|
redirect.value = '/' |
|
|
|
} |
|
|
|