From e83c81485d838b944a5d7915292bde29f9d2817e Mon Sep 17 00:00:00 2001 From: caozc Date: Mon, 27 Feb 2023 22:39:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BC=80=E5=85=B3=E8=AE=BE=E7=BD=AE=E6=B2=A1?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=B8=8B=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectcenter/LibraryAdd.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index c9383a36..4f3d7a5c 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -1148,7 +1148,7 @@ export default defineComponent({ projectTaskId: 0, projectTemplateId: localStorage.getItem("projectTemplateId"), stageId: 0, - type: 0, + type: 0 }; api .editTask(obj) @@ -1292,13 +1292,15 @@ export default defineComponent({ // 设置上传图片开关 const checkedClose = (data, a) => { console.log(data, a); + console.log("模板id:" + projectTemplateId); + console.log("开关数据:" + JSON.stringify(data) + "====" + JSON.stringify(a)) state.attachSwitch = data; // 更新开关状态 api .templateEdit({ sourceBelongId: state.projectInfo.sourceBelongId, - projectTemplateId: localStorage.getItem("projectTemplateId"), + projectTemplateId: projectTemplateId, attachSwitch: state.attachSwitch ? 1 : -1, }) .then((res) => {