refactor: 代码优化

This commit is contained in:
郝先瑞
2022-03-22 00:08:06 +08:00
parent 88ee9c7d3a
commit de3d0ef8d8
5 changed files with 15 additions and 18 deletions

View File

@@ -276,7 +276,7 @@ import {
// API依赖
import {
listUserPages,
listUsersPage,
getUserFormDetail,
deleteUsers,
addUser,
@@ -451,7 +451,7 @@ function handleStatusChange(row: { [key: string]: any }) {
**/
function handleQuery() {
state.loading = true;
listUserPages(state.queryParams).then(({ data }) => {
listUsersPage(state.queryParams).then(({ data }) => {
state.userList = data.list;
state.total = data.total;
state.loading = false;