|
@@ -9,8 +9,9 @@ export default function ({ $axios, $auth, redirect }) {
|
|
|
});
|
|
|
$axios.onResponse(async (response) => {
|
|
|
if (Object.prototype.toString.call(response.data) === '[object Object]') {
|
|
|
- if ([2, 4, 6013, 6014].includes(response.data.status)) {
|
|
|
- await $auth.logout();
|
|
|
+ if ([6013, 6014].includes(response.data.status)) {
|
|
|
+ // await $auth.logout();
|
|
|
+ await $auth.reset();
|
|
|
// await $auth.setUserToken(null);
|
|
|
}
|
|
|
if (response.data.status !== 0) {
|