fix:下载中心NAN显示判断修改

This commit is contained in:
wyx
2023-02-24 20:59:03 +08:00
parent 47015caf5a
commit b75a3b93bd
2 changed files with 3 additions and 2 deletions

View File

@@ -295,7 +295,8 @@ import {
AUDIENCE_LIST,
ORG_CHILD_LIST,
ORG_LIST,
USER_LIST, USER_LIST_PAGE,
// USER_LIST,
USER_LIST_PAGE,
} from "@/api/ThirdApi";
import {
saveStu,

View File

@@ -149,7 +149,7 @@ export default {
api.DownLoadTotalSize().then(res=>{
console.log(res)
if(res.data.code==200){
state.capacity = res.data.data;
state.capacity = res.data.data && res.data.data !== {} ? res.data.data : 0;
}else{
state.capacity = 0;
}