Commit c81ac568 by vben

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

1 parent 18f9f584
...@@ -19,7 +19,7 @@ class InterceptorManager { ...@@ -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 { ...@@ -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() { ...@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!