fix: 短信验证码发送错误校验

This commit is contained in:
2024-03-22 18:01:45 +08:00
parent 20e5abb963
commit ca05296317
2 changed files with 40 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ const loginState = useLoginState()
onMounted(() => {
loginState.checkSession().then(res => {
if (!res) {
if (!res && loginState.token) {
toast.add({
title: '登录失效',
description: '登录已过期,请重新登录',