소스 검색

时间控件bug修改-未完

zhouna 5 년 전
부모
커밋
12c010903f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common/PickTime.vue

+ 1 - 1
src/common/PickTime.vue

@@ -50,7 +50,7 @@
         handler(newVal,oldVal){
           this.val = newVal.value|| '请选择';
           //有初始值或者未选择时,重置index
-          const hasOrg = newVal.value.indexOf("分钟")>-1||newVal.value.indexOf("1")>-1||newVal.value.indexOf("0")>-1;
+          const hasOrg =newVal.value==='1分钟'; //newVal.value.indexOf("分钟")>-1||newVal.value.indexOf("1")>-1||newVal.value.indexOf("0")>-1;
           if(!newVal.value||hasOrg){//没有值时复原时间组件中的index
             this.$refs.picker.resetIndex();
           }