From 1803c997e4d6484738a57028b08e1fdda22c1ccb Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 24 Nov 2025 15:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=EF=BC=8C=E5=BC=80=E5=A7=8B=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E5=88=86=E6=9D=83=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/project.js | 3 ++- pages/project/list/index.vue | 11 ++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/api/project.js b/api/project.js index d356338..30180d3 100644 --- a/api/project.js +++ b/api/project.js @@ -157,7 +157,8 @@ export const deleteProject = (ids) => { export const startProjectDevelopment = (data) => { return uni.$uv.http.put('bst/project/start', data, { custom: { - auth: true + auth: true, + catch:true } }); }; diff --git a/pages/project/list/index.vue b/pages/project/list/index.vue index 3024977..3013ebd 100644 --- a/pages/project/list/index.vue +++ b/pages/project/list/index.vue @@ -574,7 +574,6 @@ const getAvatarText = (member) => { return name.charAt(0); }; -const deletingProjectId = ref(''); const showStartModal = ref(false); const startingProject = ref(false); const startProjectForm = reactive({ @@ -655,7 +654,7 @@ const submitStartDevelopment = async () => { } catch (err) { console.error('开始开发失败:', err); uni.showToast({ - title: err?.message || '操作失败,请稍后重试', + title: err?.msg || '操作失败,请稍后重试', icon: 'none' }); } finally { @@ -686,10 +685,6 @@ const handleDeleteProject = (project) => { return; } - if (deletingProjectId.value) { - return; - } - const projectName = project.name || project.projectName || ''; uni.showModal({ @@ -702,7 +697,6 @@ const handleDeleteProject = (project) => { } try { - deletingProjectId.value = project.id; uni.showLoading({ title: '删除中...', mask: true }); await deleteProject(project.id); uni.showToast({ title: '删除成功', icon: 'success' }); @@ -714,7 +708,6 @@ const handleDeleteProject = (project) => { icon: 'none' }); } finally { - deletingProjectId.value = ''; uni.hideLoading(); } } @@ -901,7 +894,7 @@ onLoad(() => { background-color: #fff; border-bottom: 1px solid #e4e7ed; position: fixed; - top: 0; + //top: 0; right: 0; left: 0; z-index: 100;