From be2d8f85e1e88bbca98bdaabfa3d8fdfc498552a Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 23 May 2025 08:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbenches/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/workbenches/index.vue b/src/pages/workbenches/index.vue index bd39df1..7079db6 100644 --- a/src/pages/workbenches/index.vue +++ b/src/pages/workbenches/index.vue @@ -164,8 +164,8 @@ const { safeAreaInsets } = uni.getSystemInfoSync() const projectShow = ref(false) const majorShow = ref(false) const procedureShow = ref(false) -const projectList = reactive([]) -const majorList = reactive([]) +const projectList = ref([]) +const majorList = ref([]) const procedureList = ref([]) const memberStore = useMemberStore() // 用户信息 const commonStore = useCommonStore() // 公共信息 @@ -225,10 +225,12 @@ if (userPermissions.value.length > 0) { const rightPopupShow = ref(false) // 选择项目专业工序等 const onHandleSelect = async () => { - projectList = [] - majorList = [] - projectList.push(await getProjectList()) - majorList.push(await getMajorList()) + if (projectList.value.length === 0) { + projectList.value.push(await getProjectList()) + } + if (majorList.value.length === 0) { + majorList.value.push(await getMajorList()) + } rightPopupShow.value = true }