瀏覽代碼

修改年显示

xiaohaizhao 3 月之前
父節點
當前提交
bf9d8b5a3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/viewDate/index.js

+ 1 - 1
components/viewDate/index.js

@@ -160,7 +160,7 @@ Component({
                 return;
                 return;
             }
             }
             this.setData({
             this.setData({
-                year
+                value: year
             })
             })
             this.triggerEvent("onChange", {
             this.triggerEvent("onChange", {
                 startMonth: startMonth1 || endMonth1,
                 startMonth: startMonth1 || endMonth1,