feat: 补充头部下拉
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user