Explorar el Código

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

natasha hace 2 años
padre
commit
8ea54daaf8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)) {