近7日数据改为updata
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user