Sfoglia il codice sorgente

fix(forecast): 确保年份选择器提交的数据为YYYY格式

yz 2 settimane fa
parent
commit
166d2e1f17
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/views/forecast/forecastIndex.js

+ 1 - 0
src/views/forecast/forecastIndex.js

@@ -83,6 +83,7 @@ export default {
             label: '年份',
             prop: 'year',
             type: 'year',
+            valueFormat: 'yyyy', // 添加这行,确保提交的数据是YYYY格式
             search: true,
             searchSpan: 6,
             width: 100