* [story #131253, done] refactor api-struct page for docApp.

This commit is contained in:
sunhao
2024-11-07 10:04:12 +08:00
committed by 刘刚
parent 79ad396eb4
commit ef77a3c622
4 changed files with 20 additions and 34 deletions
+3 -3
View File
@@ -342,7 +342,7 @@ class api extends control
$this->api->createStruct($formData);
if(dao::isError()) return $this->sendError(dao::getError());
return $this->sendSuccess(array('locate' => helper::createLink('api', 'struct', "libID=$libID")));
return $this->sendSuccess(array('locate' => helper::createLink('api', 'struct', "libID=$libID"), 'docApp' => array('executeCommand', 'loadLazyContent', array('.api-struct-list'))));
}
$options = array();
@@ -380,7 +380,7 @@ class api extends control
$this->api->updateStruct($formData);
if(dao::isError()) return $this->sendError(dao::getError());
return $this->sendSuccess(array('locate' => helper::createLink('api', 'struct', "libID={$struct->lib}")));
return $this->sendSuccess(array('locate' => helper::createLink('api', 'struct', "libID={$struct->lib}"), 'docApp' => array('executeCommand', 'loadLazyContent', array('.api-struct-list'))));
}
$options = array();
@@ -409,7 +409,7 @@ class api extends control
$this->api->delete(TABLE_APISTRUCT, $structID);
if(dao::isError()) return $this->sendError(dao::getError());
return $this->sendSuccess(array('load' => inlink('struct', "libID=$libID")));
return $this->sendSuccess(array('load' => inlink('struct', "libID=$libID"), 'docApp' => array('executeCommand', 'loadLazyContent', array('.api-struct-list'))));
}
/**