Compare commits
1 Commits
2107dfa261
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
674c1c715d |
@@ -1,5 +1,5 @@
|
||||
# 开发环境
|
||||
VITE_APP_BASE_API='/api'
|
||||
VITE_APP_BASE_API=/api
|
||||
|
||||
|
||||
VITE_APP_BASE_URL='http://192.168.1.38:18081'
|
||||
VITE_APP_BASE_URL=http://192.168.1.38:18081
|
||||
@@ -12,7 +12,7 @@ interface EventData {
|
||||
code: 200 | 201 | 300 | 400 | 500;
|
||||
}
|
||||
|
||||
interface logItem {
|
||||
export interface logItem {
|
||||
message: string;
|
||||
type?: "success" | "error" | "log";
|
||||
}
|
||||
@@ -128,8 +128,9 @@ export function useSSE(options: SSEOptions) {
|
||||
// 创建EventSource
|
||||
const eventSourceOptions = {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${getToken()}`,
|
||||
}
|
||||
Authorization: `Bearer ${getToken()}`,
|
||||
},
|
||||
heartbeatTimeout: 90 * 60 * 1000,
|
||||
};
|
||||
eventSource = new EventSourcePolyfill(connectUrl, eventSourceOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user