fix: when the request is wrong, no error is thrown
parent
18f9f5846a
commit
c81ac5684c
|
@ -19,7 +19,7 @@ class InterceptorManager {
|
||||||
) {
|
) {
|
||||||
this.axiosInstance.interceptors.request.use(
|
this.axiosInstance.interceptors.request.use(
|
||||||
fulfilled,
|
fulfilled,
|
||||||
rejected || ((res) => res),
|
rejected || ((res) => Promise.reject(res)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class InterceptorManager {
|
||||||
) {
|
) {
|
||||||
this.axiosInstance.interceptors.response.use(
|
this.axiosInstance.interceptors.response.use(
|
||||||
fulfilled,
|
fulfilled,
|
||||||
rejected || ((res) => res),
|
rejected || ((res) => Promise.reject(res)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -416,7 +416,7 @@ async function handleReset() {
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@click="handleClearCache"
|
@click="handleClearCache"
|
||||||
>
|
>
|
||||||
<IcRoundRestartAlt class="mr-2 size-4" />
|
<!-- <IcRoundRestartAlt class="mr-2 size-4" /> -->
|
||||||
{{ $t('preferences.clearAndLogout') }}
|
{{ $t('preferences.clearAndLogout') }}
|
||||||
</VbenButton>
|
</VbenButton>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue