瀏覽代碼

fix datepicker

tripeur 4 年之前
父節點
當前提交
33d48a9b53
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      static/js/app.js

+ 1 - 1
static/js/app.js

@@ -12,7 +12,7 @@ const coinTop50 = {
       const elems = document.querySelectorAll('.datepicker');
       this.datepicker = M.Datepicker.init(elems, {onClose:()=>{
         this.date = this.datepicker.date.toISOString().slice(0,10)
-      }});
+      }})[0];
     },
     watch:{
       date(newDate,oldDate){