From c743682ee018b25febe1c27673663b8656f5a9d9 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 11 十二月 2025 09:54:23 +0800
Subject: [PATCH] feat: 页面
---
src/utils/common/common.ts | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/utils/common/common.ts b/src/utils/common/common.ts
index 2a52bc0..a9d9864 100644
--- a/src/utils/common/common.ts
+++ b/src/utils/common/common.ts
@@ -146,3 +146,8 @@
}
return result;
}
+
+export const hiddenIDNumberForEnd4 = (realIDNumber: string) => {
+ if (!realIDNumber) return '';
+ return realIDNumber.replace(/^(\d+)(.{4})$/, '$1****');
+};
--
Gitblit v1.9.1