From 0a236e01873adff25caea4d9354e4ecd65f55617 Mon Sep 17 00:00:00 2001 From: wyx Date: Mon, 13 Feb 2023 23:34:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9B=B4=E6=92=ADid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/AddFaceteach.vue | 4 ++-- src/components/drawers/AddLive.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/drawers/AddFaceteach.vue b/src/components/drawers/AddFaceteach.vue index cbdaf3d7..7133c1a9 100644 --- a/src/components/drawers/AddFaceteach.vue +++ b/src/components/drawers/AddFaceteach.vue @@ -710,8 +710,8 @@ export default { offcoursePlanId: props.EditFaceId > 0 ? props.EditFaceId : 0, testId: state.EditTestId, duration: state.duration, - attach:state.attach, - id: props.taskIdDraft + attach:state.attach, + id: props.edit ? props.taskIdDraft : null }; console.log("obj============", obj, "6" + "9"); console.log("222222222"); diff --git a/src/components/drawers/AddLive.vue b/src/components/drawers/AddLive.vue index 189f1f27..d70845cf 100644 --- a/src/components/drawers/AddLive.vue +++ b/src/components/drawers/AddLive.vue @@ -753,8 +753,7 @@ export default { otherSettings: state.switchC2 ? "1" : "0", //1或0 signOutTime: state.inputV8, standardSettings: state.radioV1, //1或2 - isEvaluate: state.needEval ? "1" : "0", - id: props.edit? props.taskIdDraft : "" + isEvaluate: state.needEval ? "1" : "0" }; console.log("我是要更新的数据", state.obj);