Merge branch release/21.7.2 of zentao/zentaopms (#9582)

This commit is contained in:
刘刚
2025-06-17 16:09:51 +08:00
committed by Gitfox
+2 -2
View File
@@ -1172,11 +1172,11 @@ const commands =
const docApp = getDocApp();
if(!docApp.libList.length) return zui.Modal.alert(getLang('createLibFirst'));
const docType = (args && args[1]) || 'doc';
const {spaceType} = docApp;
if(spaceType === 'api') return docApp.startCreateDoc();
if(spaceType === 'api' || docType === 'api') return docApp.startCreateDoc();
const {spaceID, libID, moduleID} = docApp;
const docType = (args && args[1]) || 'doc';
return showDocBasicModal(args?.[0] ?? 0, 0, true, docType).then((formData) => {
zui.Editor.loadModule().then(() => {
const emptyDoc = zui.Editor.createEmptyDoc();