From 2bca84c9ee4a28d8ccf5e8b5e802226e38885aef Mon Sep 17 00:00:00 2001 From: "dong.ai" Date: Fri, 12 Sep 2025 13:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=B9=B4=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CourseExquisite.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/courselibrary/CourseExquisite.vue b/src/views/courselibrary/CourseExquisite.vue index cd6e8f11..3104ee37 100644 --- a/src/views/courselibrary/CourseExquisite.vue +++ b/src/views/courselibrary/CourseExquisite.vue @@ -573,17 +573,15 @@ export default defineComponent({ // 初始化年份选项 const initializeYearOptions = async () => { // const currentYear = new Date().getFullYear(); - const years = []; // for (let i = currentYear; i >= 2000; i--) { // years.push({ label: `${i}`, value: i.toString() }); // } let res = await getExquisiteYearList({}) console.log("获取年份", res); - const { data } = res.data.data - data.result.map((value) => { - years.push({ label: `${value.name}`, value: value.id.toString() }); - }) - state.yearOptions = years; + // .map((value) => { + // years.push({ label: `${value.name}`, value: value.id.toString() }); + // }) + state.yearOptions =res.data.data.result; }; //内容分类