From e3dbce8b8698f350eeb105f28b61bb2872d55553 Mon Sep 17 00:00:00 2001 From: Euni4U <958079825@qq.com> Date: Fri, 28 Mar 2025 20:58:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A5=E5=9B=9E=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Department-entry/Drawer-Template.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/views/Department-entry/Drawer-Template.vue b/src/views/Department-entry/Drawer-Template.vue index 15e8754..ba5d5b1 100644 --- a/src/views/Department-entry/Drawer-Template.vue +++ b/src/views/Department-entry/Drawer-Template.vue @@ -170,14 +170,8 @@ watch(visible, (newVal) => { const getCategoryOptions = async () => { try { let categories; - if (Type.value = '汇总') { - // 如果是汇总标签页,调用getCategory接口但不传递类型参数 - categories = await TemplateApi.getAllCategories() - } else { - // 否则按模板类型获取相应的部位 - categories = await TemplateApi.getCategory(Type.value) - } - + categories = await TemplateApi.getCategory(Type.value) + console.log(categories) categoryOptions.value = categories.map(category => ({ label: category, value: category