fix:双token更新

This commit is contained in:
Gsh
2025-06-30 16:59:20 +08:00
parent 6aefcdbed8
commit f12f0e1f84
2 changed files with 16 additions and 11 deletions

View File

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