fix:双token更新
This commit is contained in:
@@ -6,6 +6,7 @@ import type { BubbleProps } from 'vue-element-plus-x/types/Bubble';
|
||||
import type { BubbleListInstance } from 'vue-element-plus-x/types/BubbleList';
|
||||
import type { FilesCardProps } from 'vue-element-plus-x/types/FilesCard';
|
||||
import type { ThinkingStatus } from 'vue-element-plus-x/types/Thinking';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { useHookFetch } from 'hook-fetch/vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { send } from '@/api';
|
||||
@@ -148,7 +149,9 @@ function handleDataChunk(chunk: AnyObject) {
|
||||
|
||||
// 封装错误处理逻辑
|
||||
function handleError(err: any) {
|
||||
console.log('Fetch error:-------', err);
|
||||
if (err.status === 403) {
|
||||
ElMessage.error('业务错误,请稍后再试');
|
||||
}
|
||||
console.error('Fetch error:', err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user