提交 be014955 authored 作者: 王鹏飞's avatar 王鹏飞

输出错误提示

上级 59ea0613
...@@ -255,9 +255,10 @@ export default { ...@@ -255,9 +255,10 @@ export default {
this.page.total = parseInt(total) this.page.total = parseInt(total)
this.dataList = callback ? callback(list) : list this.dataList = callback ? callback(list) : list
}) })
.catch(() => { .catch((error) => {
this.page.total = 0 this.page.total = 0
this.dataList = [] this.dataList = []
console.log(error)
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论