处理无限loading的问题

This commit is contained in:
valarchie
2022-10-09 20:44:48 +08:00
parent 82bc535453
commit 1948ce6efc
7 changed files with 7 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ function getList() {
list(proxy.addTimeRange(queryParams.value, dateRange.value)).then((response) => {
operlogList.value = response.rows;
total.value = response.total;
}).finally(() => {
loading.value = false;
});
}

View File

@@ -189,6 +189,7 @@ function getList() {
listConfig(proxy.addTimeRange(queryParams.value, dateRange.value)).then((response) => {
configList.value = response.rows;
total.value = response.total;
}).finally(() => {
loading.value = false;
});
}

View File

@@ -194,6 +194,7 @@ function getList() {
loading.value = true;
listDept(queryParams.value).then((response) => {
deptList.value = proxy.handleTree(response, 'deptId');
}).finally(() => {
loading.value = false;
});
}

View File

@@ -331,6 +331,7 @@ function getList() {
loading.value = true;
listMenu(queryParams.value).then((response) => {
menuList.value = proxy.handleTree(response, 'menuId');
}).finally(() => {
loading.value = false;
});
}

View File

@@ -212,6 +212,7 @@ function getList() {
listNotice(queryParams.value).then((response) => {
noticeList.value = response.rows;
total.value = response.total;
}).finally(() => {
loading.value = false;
});
}

View File

@@ -124,6 +124,7 @@ function getList() {
allocatedUserList(queryParams).then((response) => {
userList.value = response.rows;
total.value = response.total;
}).finally(() => {
loading.value = false;
});
}

View File

@@ -325,6 +325,7 @@ function getList() {
listRole(proxy.addTimeRange(queryParams.value, dateRange.value)).then((response) => {
roleList.value = response.rows;
total.value = response.total;
}).finally(() => {
loading.value = false;
});
}