处理无限loading的问题
This commit is contained in:
parent
1948ce6efc
commit
6927bcc7c9
@ -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('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {
|
||||
|
||||
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
@ -82,6 +82,7 @@ function getList() {
|
||||
initData(queryParams.value).then((response) => {
|
||||
onlineList.value = response.rows;
|
||||
total.value = response.total;
|
||||
}).finally(() => {
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
@ -194,6 +194,7 @@ function getList() {
|
||||
listPost(queryParams.value).then((response) => {
|
||||
postList.value = response.rows;
|
||||
total.value = response.total;
|
||||
}).finally(() => {
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
@ -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;
|
||||
});
|
||||
}
|
||||
/** 节点单击事件 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user