reset 回滚 错误修复 并增加正确修复

This commit is contained in:
疯狂的狮子Li 2023-07-12 13:52:59 +08:00
parent 64aea65cef
commit 5fa3f9a350

View File

@ -27,6 +27,9 @@ const processResponse = async (res: any) => {
if (res.code !== 200) {
throw new Error(res.msg);
}
if (res.data !== null) {
setToken(res.data.access_token);
}
ElMessage.success(res.msg);
location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
};