|
@@ -24,8 +24,12 @@ export const useAppLogin = async (form) => {
|
|
|
if (!error && status === 200) {
|
|
|
const info = await setUserAppInfo(res)
|
|
|
return { error: info.error, msg: info.msg }
|
|
|
+ } else if (status === 401) {
|
|
|
+ const info = await setUserAppInfo(res)
|
|
|
+ return { error: info.error, msg: info.msg, status:status }
|
|
|
} else {
|
|
|
return Promise.reject({ error, status, res })
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|