Merge #1 into develop from web

update web
This commit is contained in:
赵莹
2025-12-15 07:16:19 +00:00
parent a4e276ab27
commit ea0a445d5b
65 changed files with 842 additions and 408 deletions

View File

@@ -1,10 +1,11 @@
import { message } from 'antd';
import i18n from '@/i18n'
import { cookieUtils } from './request'
const API_PREFIX = '/api'
export const handleSSE = async (url: string, data: any, onMessage?: (data: string) => void, config = {}) => {
try {
const token = localStorage.getItem('token');
const token = cookieUtils.get('authToken');
const response = await fetch(`${API_PREFIX}${url}`, {
method: 'POST',
headers: {