From 37df8a7fa1d12f82be901fd534b4ebe15cfa3b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Wed, 26 Oct 2022 10:51:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83API?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/ContentHeader/headerRightBtn/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/chart/ContentHeader/headerRightBtn/index.vue b/src/views/chart/ContentHeader/headerRightBtn/index.vue index 34e2adb5..a24d2da2 100644 --- a/src/views/chart/ContentHeader/headerRightBtn/index.vue +++ b/src/views/chart/ContentHeader/headerRightBtn/index.vue @@ -60,7 +60,7 @@ import { StorageEnum } from '@/enums/storageEnum' import { ResultEnum } from '@/enums/httpEnum' import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore' import { ProjectInfoEnum } from '@/store/modules/chartEditStore/chartEditStore.d' -import { updateProjectApi } from '@/api/path' +import { changeProjectReleaseApi } from '@/api/path' import { previewPath, renderIcon, @@ -148,7 +148,7 @@ const copyPreviewPath = (successText?: string, failureText?: string) => { // 发布 const sendHandle = async () => { - const res = (await updateProjectApi({ + const res = (await changeProjectReleaseApi({ id: fetchRouteParamsLocation(), // 反过来 state: release.value ? -1 : 1,