feat: 补充头部下拉

This commit is contained in:
xuziqiang
2024-05-23 17:49:25 +08:00
parent 1a7a01894d
commit 576f313b2f
4 changed files with 34 additions and 3 deletions

View File

@@ -324,7 +324,11 @@ export function useAction(actionParams: actionParams = {}) {
if (handleList.route) return handleList.route();
if (handleList.api) await handleList.api();
// handleList.api && showSuccess !== false && NsMessage.success(`${label}成功`);
if (handleList.handle) await handleList.handle(data, name, { ...extraData });
try {
if (handleList.handle) await handleList.handle(data, name, { ...extraData });
} catch (error) {
console.log(error);
}
if (isReload) {
isFunction(reload) && reload();
}