perf: nodata处理、npmLine.vue代码优化

This commit is contained in:
chenjinsong
2022-09-08 17:09:38 +08:00
parent 1ec0859b60
commit fd3ddea871
13 changed files with 103 additions and 152 deletions

View File

@@ -96,9 +96,7 @@ export default {
this.toggleLoading(true)
get(url, params).then(res => {
if (res.code === 200) {
if (res.data.result.length === 0) {
this.isNoData = true
}
this.isNoData = res.data.result.length === 0
res.data.result.forEach(e => {
if (e.startTime) {
e.startTime = dateFormatByAppearance(e.startTime)