소스 검색

语音矩阵修改不能输入10的bug

natasha 2 년 전
부모
커밋
8ea54daaf8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/Adult/inputModules/VoiceMatrix.vue

+ 1 - 1
src/components/Adult/inputModules/VoiceMatrix.vue

@@ -519,7 +519,7 @@ export default {
     number(attr) {
       let val = this[attr];
       if (val.length <= 0) return '';
-      if (/(^1[12345678]$)|(^\d{1}$)/g.test(val)) {
+      if (/(^1[012345678]$)|(^\d{1}$)/g.test(val)) {
         return (this[attr] = Number(val));
       }
       if (val.length >= 2 && /^\d*$/g.test(val)) {