From ab9a81adf064bc1905dbcec39e97371c3e1d5c5d Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 17 十月 2025 19:46:08 +0800
Subject: [PATCH] feat: 1.2.0.1
---
packages/utils/LoggerRecord/index.ts | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/packages/utils/LoggerRecord/index.ts b/packages/utils/LoggerRecord/index.ts
index 365fba0..b3552b9 100644
--- a/packages/utils/LoggerRecord/index.ts
+++ b/packages/utils/LoggerRecord/index.ts
@@ -69,6 +69,6 @@
};
},
getPageUrl() {
- return Taro.getCurrentInstance().router.path;
+ return Taro.getCurrentInstance()?.router?.path ?? '';
},
});
--
Gitblit v1.9.1