refactor(order): 将 getLists() 调用移至 onMounted 钩子中

- 优化代码结构,确保在组件挂载后获取列表数据
- 提高代码的可读性和性能
This commit is contained in:
mkm 2024-11-11 17:08:58 +08:00
parent 4d69692bfd
commit a87225dcd9
1 changed files with 3 additions and 1 deletions

View File

@ -110,5 +110,7 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
params: queryParams
})
getLists()
onMounted(() => {
getLists()
})
</script>