Commit 3918c5c4 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent b0b4d286
......@@ -91,6 +91,7 @@ export default {
},
mounted() {},
methods: {
// 获取首页数据
async getHomeData() {
this.loading = true;
let res = await getHomeData();
......@@ -99,7 +100,6 @@ export default {
let { data } = res.data;
let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data;
this.homeData = data;
const formatData = (list, valueKey) => {
return list
.map((item) => {
......
......@@ -45,13 +45,14 @@ export default {
}
},
isAccess() {
if (this.data.accessSystemList && this.data.accessSystemList.length) {
return this.data.accessSystemList.every((v) => {
return v.enabled != 0;
});
} else {
return false;
}
return this.data.accessSystemList && this.data.accessSystemList.length
// if (this.data.accessSystemList && this.data.accessSystemList.length) {
// return this.data.accessSystemList.every((v) => {
// return v.enabled != 0;
// });
// } else {
// return false;
// }
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment