refactor: reloadList

This commit is contained in:
xingyu4j
2022-11-15 14:39:39 +08:00
parent ecb7ade767
commit 9794d1cfd7
7 changed files with 23 additions and 50 deletions

View File

@ -113,7 +113,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
})
// 刷新列表
const getList = async (ref) => {
const reloadList = async (ref) => {
await nextTick()
ref.value?.commitProxy('query')
}
@ -147,7 +147,7 @@ export const useVxeGrid = <T = any>(config?: UseVxeGridConfig<T>) => {
return {
gridOptions,
getList,
reloadList,
getSearchData,
delList
}