fix: when the request is wrong, no error is thrown

pull/48/MERGE
vben 2024-07-13 18:27:57 +08:00
parent 18f9f5846a
commit c81ac5684c
2 changed files with 3 additions and 3 deletions

View File

@ -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)),
); );
} }
} }

View File

@ -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>