Browse Source

修改查看日志详情地址错误

Xiahai 1 năm trước cách đây
mục cha
commit
bc3ce4bac2
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      src/utils/request.ts
  2. 1 1
      src/views/system/monitor/lastLinesLog/index.vue

+ 1 - 1
src/utils/request.ts

@@ -128,7 +128,7 @@ export function file(url: string, params?: any, method: 'get' | 'post' = 'get'):
 			url,
 			method,
 			params,
-			timeout: 30000,
+			timeout: 100000,
 			responseType: 'arraybuffer',
 		});
 	} else {

+ 1 - 1
src/views/system/monitor/lastLinesLog/index.vue

@@ -41,7 +41,7 @@ const errorMessage=ref([]);
 const topmsg=ref([]);
 
 const view = (row: any) => {
-	const es = new EventSource(getOrigin(import.meta.env.VITE_SERVER_URL + "subscribe/logInfo?name="+row.name));
+	const es = new EventSource(getOrigin(import.meta.env.VITE_SERVER_URL + "/subscribe/logInfo?name="+row.name));
 	es.addEventListener('log', ({ data }) => {
 		topmsg.value.unshift(data);
 	});