BUG 29703
This commit is contained in:
@@ -60,6 +60,9 @@ export default {
|
|||||||
if (isNaN(integral)) {
|
if (isNaN(integral)) {
|
||||||
return this.$u.toast("请输入赠送分值")
|
return this.$u.toast("请输入赠送分值")
|
||||||
}
|
}
|
||||||
|
if(!/^\d*[.\d]\d?$/.test(integral)){
|
||||||
|
return this.$u.toast("请输入整数,最多保留一位小数")
|
||||||
|
}
|
||||||
this.$http.post("/admin/user/giveIntegral", null, {
|
this.$http.post("/admin/user/giveIntegral", null, {
|
||||||
params: {...this.form}
|
params: {...this.form}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user