From 452cf44ab96df52b6917cbb7f5a17ebb0e97241b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 20 May 2022 15:21:26 +0800 Subject: [PATCH] BUG 29703 --- src/apps/AppCreditPoints/giveIntegral.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/AppCreditPoints/giveIntegral.vue b/src/apps/AppCreditPoints/giveIntegral.vue index 71c5c744..a39b5041 100644 --- a/src/apps/AppCreditPoints/giveIntegral.vue +++ b/src/apps/AppCreditPoints/giveIntegral.vue @@ -60,6 +60,9 @@ export default { if (isNaN(integral)) { return this.$u.toast("请输入赠送分值") } + if(!/^\d*[.\d]\d?$/.test(integral)){ + return this.$u.toast("请输入整数,最多保留一位小数") + } this.$http.post("/admin/user/giveIntegral", null, { params: {...this.form} }).then(res => {