编辑页面开发

This commit is contained in:
sswiki
2024-12-10 23:24:44 +08:00
parent d6bcfc5492
commit e9f1c3b5cf
17 changed files with 573 additions and 98 deletions

View File

@@ -99,7 +99,8 @@ const createPage = (editorType, confirmName) => {
storePage.eventPageListUpdate = !storePage.eventPageListUpdate;
ElMessage.success('创建成功');
if (editorType !== 0) {
router.push({path: '/page/edit', query: {parentId: props.pageId, pageId: json.data.id}});
let newPageId = json.data.id;
router.push({path: `/edit/${storeSpace.chooseSpaceId}/${newPageId}`});
}
});
}