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(
|
||||
fulfilled,
|
||||
rejected || ((res) => res),
|
||||
rejected || ((res) => Promise.reject(res)),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ class InterceptorManager {
|
|||
) {
|
||||
this.axiosInstance.interceptors.response.use(
|
||||
fulfilled,
|
||||
rejected || ((res) => res),
|
||||
rejected || ((res) => Promise.reject(res)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -416,7 +416,7 @@ async function handleReset() {
|
|||
variant="ghost"
|
||||
@click="handleClearCache"
|
||||
>
|
||||
<IcRoundRestartAlt class="mr-2 size-4" />
|
||||
<!-- <IcRoundRestartAlt class="mr-2 size-4" /> -->
|
||||
{{ $t('preferences.clearAndLogout') }}
|
||||
</VbenButton>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue