近7日数据改为updata

This commit is contained in:
2025-05-12 21:09:32 +08:00
parent 60f6fc4873
commit dcd677bbab
5 changed files with 38 additions and 17 deletions

View File

@@ -111,17 +111,17 @@ const onSubmit = () => {
}).then((res) => {
loading.close();
console.log(res)
if (res) {
if (res.activeYn == 'Y') {
setToken(res.currcode);
setUser(res);
if (res.code == 200) {
if (res.data.activeYn == 'Y') {
setToken(res.data.currcode);
setUser(res.data);
router.push('/nav');
} else {
alert('账号未启用');
}
} else {
// alert('账号或密码错误');
alert(res.mes);
}
}).catch((err) => {