mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
fix: 修改发布API错误调用
This commit is contained in:
parent
8039213380
commit
37df8a7fa1
@ -60,7 +60,7 @@ import { StorageEnum } from '@/enums/storageEnum'
|
|||||||
import { ResultEnum } from '@/enums/httpEnum'
|
import { ResultEnum } from '@/enums/httpEnum'
|
||||||
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
import { useChartEditStore } from '@/store/modules/chartEditStore/chartEditStore'
|
||||||
import { ProjectInfoEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
import { ProjectInfoEnum } from '@/store/modules/chartEditStore/chartEditStore.d'
|
||||||
import { updateProjectApi } from '@/api/path'
|
import { changeProjectReleaseApi } from '@/api/path'
|
||||||
import {
|
import {
|
||||||
previewPath,
|
previewPath,
|
||||||
renderIcon,
|
renderIcon,
|
||||||
@ -148,7 +148,7 @@ const copyPreviewPath = (successText?: string, failureText?: string) => {
|
|||||||
|
|
||||||
// 发布
|
// 发布
|
||||||
const sendHandle = async () => {
|
const sendHandle = async () => {
|
||||||
const res = (await updateProjectApi({
|
const res = (await changeProjectReleaseApi({
|
||||||
id: fetchRouteParamsLocation(),
|
id: fetchRouteParamsLocation(),
|
||||||
// 反过来
|
// 反过来
|
||||||
state: release.value ? -1 : 1,
|
state: release.value ? -1 : 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user