合并闭源版功能,创建文档时上传文件也能绑定到page上

This commit is contained in:
Sh1yu
2023-06-27 16:43:33 +08:00
parent d03a1fa746
commit 49d697347a
10 changed files with 100 additions and 19 deletions

View File

@@ -208,10 +208,14 @@ const turnLeftCollapse = () => {
}
const createWiki = () => {
if (choiceSpace.value > 0) {
router.push({
path: '/page/edit',
query: {parentId: nowPageId.value}
})
pageApi.createEmptyPage({spaceId: choiceSpace.value,parentId: nowPageId.value})
.then((json) => {
router.push({
path: '/page/edit',
query: {parentId: nowPageId.value, pageIdHid: json.data}
})
})
} else {
ElMessage.warning('请先选择或创建空间')
}