diff --git a/IOReportSysMP/miniprogram/components/yinput/yinput.ts b/IOReportSysMP/miniprogram/components/yinput/yinput.ts index 30ed8be..41cba2f 100644 --- a/IOReportSysMP/miniprogram/components/yinput/yinput.ts +++ b/IOReportSysMP/miniprogram/components/yinput/yinput.ts @@ -30,7 +30,7 @@ Component({ }, lifetimes: { ready:function(){ - const initValue = this.data.defaultValue || '' + const initValue = this.data.value || this.data.defaultValue || '' this.dataset[this.data.bindValue] = initValue this.setData({ value: initValue }) },