From 2b49cb15e5b6dcbfc86470386952b1197d9e0e9b Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Mon, 31 Jul 2023 15:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=89=E7=A8=BF=E5=8F=91=E5=B8=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/PublishApi.ts | 2 +- src/pages/DraftManage.vue | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/api/PublishApi.ts b/src/api/PublishApi.ts index 4156d90..679af58 100644 --- a/src/api/PublishApi.ts +++ b/src/api/PublishApi.ts @@ -23,7 +23,7 @@ export class PagingQueryParams extends PageQueryDto { export function publishDraft(data: { name: string; lineId?: number; - draftingId: number; + draftId: number; }) { return api.post(`${PublishUriBase}/publish`, data); } diff --git a/src/pages/DraftManage.vue b/src/pages/DraftManage.vue index 5512f1d..6bdba87 100644 --- a/src/pages/DraftManage.vue +++ b/src/pages/DraftManage.vue @@ -315,13 +315,10 @@ async function publishGraphics() { pubForm.value?.validate().then(async (res) => { if (res) { try { - const params: { draftingId: number; name: string; lineId?: number } = { - draftingId: +publishForm.id, + const params: { draftId: number; name: string; lineId?: number } = { + draftId: +publishForm.id, name: publishForm.pubName, }; - // if (publishForm.type == 'Line') { - // params.lineId = +publishForm.lineId; - // } await publishDraft(params); publishFormShow.value = false; $q.notify({