提交 1c651387 authored 作者: Ma's avatar Ma

红榜 代码提交

上级 7f6c63d6
......@@ -90,7 +90,7 @@ import { getNavList } from "./service";
import NavList from "./navList.json";
import { ArrowLeftBold, CaretRight } from "@element-plus/icons";
import { mapState } from "vuex";
import {downLoadWps} from './download.js'
import { downLoadWps } from './download.js'
import axios from "axios"
//使用
......@@ -139,7 +139,14 @@ export default defineComponent({
curYearIndex: 4,
};
},
created() { },
created() {
this.years.map((item, index) => {
if (index == this.curYearIndex) {
this.$store.commit("SET_CUR_DATA_TYPE", item.value);
this.$store.commit("SET_CUR_DATA_LABEl", item.label);
}
})
},
computed: {
...mapState({
curDataType: (state) => state.curDataType,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论