Przeglądaj źródła

yearpicker 优化

wangwei 3 lat temu
rodzic
commit
638407acab
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/views/money/bill/customCom/YearPicker.vue

+ 2 - 2
src/views/money/bill/customCom/YearPicker.vue

@@ -43,11 +43,11 @@
           if (!props.value) {
             state.value = '';
           } else {
-            state.value = moment(String(props.value.year)).format('YYYY');
+            state.value = moment(props.value.year).format('YYYY');
           }
           state.disabled = false;
         } else {
-          state.value = moment(String(props.value)).format('YYYY');
+          state.value = moment(props.value).format('YYYY');
           state.disabled = true;
         }
       }