mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-12-01 08:46:31 +08:00
更改token过期判断
This commit is contained in:
@@ -25,7 +25,8 @@ axios.interceptors.response.use(
|
||||
detail,
|
||||
};
|
||||
|
||||
if (error.detail === 'Not authenticated') {
|
||||
/** token 过期 */
|
||||
if (error.status === 401) {
|
||||
const { auth } = useAuth();
|
||||
auth.value = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user