Explorar o código

时间控件bug修改-未完

zhouna %!s(int64=5) %!d(string=hai) anos
pai
achega
12c010903f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
           }