Explorar o código

[Mod 0000] 浏览日志记录功能兼容数据中心

houzekong hai 6 días
pai
achega
5ffe83723c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/router/helper/menuHelper.ts

+ 6 - 0
src/router/helper/menuHelper.ts

@@ -103,6 +103,12 @@ export async function addBrowseLog(
   from: AppRouteRecordRaw | RouteLocationNormalized,
   ignorePaths: string[]
 ): Promise<void> {
+  const currentPort = window.location.port;
+
+  if (currentPort === '8062') {
+    return Promise.resolve();
+  }
+
   // 在尝试添加浏览器记录时,应该先发出一个结束上次记录的请求(如有)再发出一个开发此次记录的请求
   const url = '/sys/log/addBrowseLog';