优化部分接口查询、n+1问题, 添加logs

This commit is contained in:
xie7654
2025-07-06 21:40:38 +08:00
parent 575513ccbb
commit 3c748eacd6
8 changed files with 98 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ import { Plus } from '@vben/icons';
import { Button, message } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { deleteDept, getDeptList } from '#/api/system/dept';
import { deleteDept, treeDept } from '#/api/system/dept';
import { $t } from '#/locales';
import { useColumns } from './data';
@@ -108,7 +108,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
proxyConfig: {
ajax: {
query: async (_params) => {
return await getDeptList();
return await treeDept();
},
},
},