From 7039c7f1a1feacc5479cbe7b886f239dea3ef1e6 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 10 十一月 2025 14:05:08 +0800
Subject: [PATCH] Merge branch 'dev-1.3.0.1' of http://120.26.58.240:8888/r/flexJobMiniApp into dev-1.3.0.1
---
packages/utils/LoggerRecord/index.ts | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/packages/utils/LoggerRecord/index.ts b/packages/utils/LoggerRecord/index.ts
index 365fba0..ed5102c 100644
--- a/packages/utils/LoggerRecord/index.ts
+++ b/packages/utils/LoggerRecord/index.ts
@@ -55,7 +55,7 @@
}
}
-export const httpLoggerRecord = new HttpLoggerRecord({
+const Options: LoggerRecordOptions = {
moduleName: getUtilsConfig().appName,
enableStorage: true,
loggerStorageAdapter() {
@@ -69,6 +69,10 @@
};
},
getPageUrl() {
- return Taro.getCurrentInstance().router.path;
+ return Taro.getCurrentInstance()?.router?.path ?? '';
},
-});
+};
+
+export const defaultLoggerRecord = new LoggerRecord(Options);
+
+export const httpLoggerRecord = new HttpLoggerRecord(Options);
--
Gitblit v1.9.1