|
@ -241,16 +241,6 @@ |
|
|
// 登录 |
|
|
// 登录 |
|
|
const handleLogin = async () => { |
|
|
const handleLogin = async () => { |
|
|
console.log('登录-185') |
|
|
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 |
|
|
loginLoading.value = true |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
@ -297,6 +287,16 @@ |
|
|
authUtil.removeLoginForm() |
|
|
authUtil.removeLoginForm() |
|
|
} |
|
|
} |
|
|
authUtil.setToken(res) |
|
|
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) { |
|
|
if (!redirect.value) { |
|
|
redirect.value = '/' |
|
|
redirect.value = '/' |
|
|
} |
|
|
} |
|
|