Explorar el Código

年份改为动态

彭宇 hace 1 año
padre
commit
ddfb0f646e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/bigdata/chart-event.vue

+ 1 - 1
src/views/bigdata/chart-event.vue

@@ -19,7 +19,7 @@ export default {
   name: 'event',
   data() {
     return {
-      year: 2022,
+      year:  Number(new Date().getFullYear()),
       optionData: [],
       option2Data: []
     }