Commit cd106b58 authored by 程新智's avatar 程新智 👽

优化

parent 2bf0cf0e
......@@ -203,6 +203,15 @@ export default {
// 触发加载失败事件
this.$emit('loadFail');
},
//切换效果
toggle() {
this.showEmpty = false;
},
//showEmpty
show() {
this.showEmpty = true;
this.loadStateText = ''
},
// 刷新数据
refresh() {
// 如果是下拉刷新
......
......@@ -293,6 +293,7 @@ export default {
this.http.httpTokenRequest(opts, order).then(res => {
if (res.data.code == 200) {
this.orderList = res.data.data.rows
this.orderList.length>0?this.$refs.list.toggle():this.$refs.list.show()
}
})
},
......
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