fix: 修改发布API错误调用

This commit is contained in:
奔跑的面条 2022-10-26 10:51:10 +08:00
parent 8039213380
commit 37df8a7fa1

View File

@ -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,