浏览代码

默认今年

duy 2 年之前
父节点
当前提交
9ca889d0d6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/static/actual.vue

+ 1 - 1
src/views/static/actual.vue

@@ -117,7 +117,7 @@ const getYearList = async () => {
         const arr = getArrValue(data)
         yearoptions.value = arr
         if ( yearoptions.value.length > 0) {
-            checkyear.value = yearoptions.value[0]
+            checkyear.value = yearoptions.value[yearoptions.value.length - 1]
         }
     } else {
         yearoptions.value = []