This commit is contained in:
2022-12-12 09:29:59 +08:00
parent 8e4f8dd45f
commit 5a0d86e2e9
4 changed files with 4 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ const _sfc_main = defineComponent({
}
if (props.qfw) {
try {
let reg = /\d{1,3}(?=(\d{3})+$)/g;
let reg = /\B(?=(\d{3})+$)/g;
console.log("\u6DFB\u52A0\uFF0C", new String(props.modelValue).replace(reg, "$&,"));
currentValue.value = new String(props.modelValue).replace(reg, "$&,");
} catch {