Browse Source

修改数量

hella_online_20241024
lijuncheng 1 month ago
parent
commit
72c58083b2
  1. 8
      src/mycomponents/qty/numbeIntegerrBox.vue

8
src/mycomponents/qty/numbeIntegerrBox.vue

@ -78,7 +78,13 @@
var hint = event.detail.value;
if (!Number.isInteger(hint)) {
//
this.inputValue = hint.toString().match(/^\d+/)
var temp = hint.toString().match(/^\d+/)
if(Array.isArray(temp)){
this.inputValue =temp[0]
}else {
this.inputValue =temp
}
// this.inputValue = hint.toString().match(/^\d+/) || 0;
} else {
//

Loading…
Cancel
Save