fix: 新增发布页面处理

This commit is contained in:
奔跑的面条
2022-06-03 14:48:58 +08:00
parent ae1fd2e7cf
commit 88dbbe03ea
7 changed files with 164 additions and 34 deletions
+4 -1
View File
@@ -81,14 +81,17 @@ export const useSync = () => {
projectName: string,
indexImage: string,
remarks: string,
state: number
}) => {
const { projectName, remarks, indexImage } = projectData
const { projectName, remarks, indexImage, state } = projectData
// 名称
chartEditStore.setProjectInfo(ProjectInfoEnum.PROJECT_NAME, projectName)
// 描述
chartEditStore.setProjectInfo(ProjectInfoEnum.REMARKS, remarks)
// 缩略图
chartEditStore.setProjectInfo(ProjectInfoEnum.THUMBNAIL, indexImage)
// 发布
chartEditStore.setProjectInfo(ProjectInfoEnum.RELEASE, state === 1)
}
// * 数据获取