1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +08:00

feat: crud组件handleSearch增加参数控制是否留在当前页

This commit is contained in:
zclzone
2024-06-20 14:02:45 +08:00
parent c98e489063
commit c2ff434b9d
3 changed files with 14 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ export function useCrud({ name, initForm = {}, doCreate, doDelete, doUpdate, ref
const data = await doDelete(id)
$message.success('删除成功')
d.loading = false
refresh(data)
refresh(data, true)
}
catch (error) {
d.loading = false