修改年份数据展示

This commit is contained in:
dong.ai
2025-09-12 14:24:25 +08:00
parent 51ff13bc6d
commit bf5cd8591b

View File

@@ -573,14 +573,12 @@ export default defineComponent({
// 初始化年份选项
const initializeYearOptions = async () => {
let res = await getExquisiteYearList({})
const years = res.data.data.result.map((value) => {
const years = res.data.data.result.map((year) => {
return {
label: `${value.name}`,
value: value.id.toString()
label: year,
value: year
};
});
console.log("years", years);
state.yearOptions = years;
};