refactor(order): 将 getLists() 调用移至 onMounted 钩子中
- 优化代码结构,确保在组件挂载后获取列表数据 - 提高代码的可读性和性能
This commit is contained in:
parent
4d69692bfd
commit
a87225dcd9
|
@ -110,5 +110,7 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
|
|||
params: queryParams
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
getLists()
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue