zhengyiming
2025-11-08 8528852ee8533fbd9c31a6d10364f1806ad09e1e
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);