fix : 修复数据loading加载
This commit is contained in:
@@ -204,15 +204,15 @@ const handleGoHome = () => {
|
||||
const getList = () => {
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '正在加载系统资源',
|
||||
text: '正在加载系统资源...',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
customClass:'allLoading'
|
||||
})
|
||||
getSiteList({
|
||||
userId: userId,
|
||||
...pageInfo
|
||||
}).then((res) => {
|
||||
if (res.code === 1000) {
|
||||
loading.close()
|
||||
total.value = res.data.total;
|
||||
if (total.value == 0) {
|
||||
|
||||
@@ -230,8 +230,8 @@ const getList = () => {
|
||||
})
|
||||
siteList.value = res.data.rows;
|
||||
}
|
||||
loading.close()
|
||||
});
|
||||
|
||||
}
|
||||
getList()
|
||||
const handleClickSite = (type) => {
|
||||
@@ -268,10 +268,17 @@ const restFrom = () => {
|
||||
const handleEdit = (item) => {
|
||||
title.value = '编辑站点'
|
||||
restFrom()
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '正在加载系统资源...',
|
||||
background: 'rgba(0, 0, 0, 0.7)',
|
||||
customClass:'allLoading'
|
||||
})
|
||||
getSiteDetail(item.siteId).then((res) => {
|
||||
form.value = res.data;
|
||||
form.value = item;
|
||||
isVisited.value = true
|
||||
loading.close()
|
||||
});
|
||||
}
|
||||
const handleUpload = (siteId) => {
|
||||
|
||||
Reference in New Issue
Block a user