|
|
@ -49,9 +49,9 @@ export default function IndexPage() {
|
|
|
|
if (res?.result == 'success' && res?.data[0]?.data) {
|
|
|
|
if (res?.result == 'success' && res?.data[0]?.data) {
|
|
|
|
setIsAuth(true)
|
|
|
|
setIsAuth(true)
|
|
|
|
localStorage.setItem('is_auth', JSON.stringify(true));
|
|
|
|
localStorage.setItem('is_auth', JSON.stringify(true));
|
|
|
|
message.success("系统连接检测成功")
|
|
|
|
message.success("系统连接检测成功!")
|
|
|
|
} else if (!res?.data[0]?.data) {
|
|
|
|
} else if (!res?.data[0]?.data) {
|
|
|
|
message.success("系统连接检测失败")
|
|
|
|
message.error("系统连接检测失败!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
setLoading(false)
|
|
|
|
setLoading(false)
|
|
|
|