Merge branch release/21.7.2 of zentao/zentaopms (#9582)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user