From 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期五, 05 九月 2025 20:44:14 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
---
utils/common.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/utils/common.js b/utils/common.js
index fbe12f4..87f3b4e 100644
--- a/utils/common.js
+++ b/utils/common.js
@@ -303,6 +303,13 @@
}
innerAudioContext.play(); // 鎾斁闊抽
}
+
+ replaceWithFunction(str, handler) {
+ return str.replace(/\{(.+?)\}/g, (match, key) => {
+ // 璋冪敤澶勭悊鍑芥暟锛屼紶鍏ュ尮閰嶅埌鐨勯敭
+ return handler(key, match);
+ });
+ }
}
export const CommonUtils = new commonUtils()
\ No newline at end of file
--
Gitblit v1.9.1