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