Browse Source

Merge branch '任务重置日期bug' into 国际化适配

xiaohaizhao 1 năm trước cách đây
mục cha
commit
e3c3b3531d
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      packageA/work/add.js

+ 3 - 2
packageA/work/add.js

@@ -469,8 +469,9 @@ Page({
     },
     reset() {
         let form = this.data.form;
-        form[4].value = "";
-        form.splice(5, 2);
+        let index = form.findIndex(v => v.label == '开始日期');
+        form[index].value = "";
+        form.splice(index + 1, 2);
         this.setData({
             isReset: true,
             disabled: true,