处理无限loading的问题

This commit is contained in:
valarchie 2022-10-09 20:44:56 +08:00
parent 1948ce6efc
commit 6927bcc7c9
5 changed files with 6 additions and 2 deletions

View File

@ -77,7 +77,7 @@ service.interceptors.response.use(
if (res.request.responseType === 'blob' || res.request.responseType === 'arraybuffer') {
return res.data;
}
if (code === 401) {
if (code === 20101) {
if (!isRelogin.show) {
isRelogin.show = true;
ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {

View File

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

View File

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

View File

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

View File

@ -443,9 +443,10 @@ function getTreeSelect() {
function getList() {
loading.value = true;
listUser(proxy.addTimeRange(queryParams.value, dateRange.value)).then((res) => {
loading.value = false;
userList.value = res.rows;
total.value = res.total;
}).finally(() => {
loading.value = false;
});
}
/** 节点单击事件 */