diff --git a/src/utils/request.js b/src/utils/request.js index b3c1744..c3904d7 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -78,6 +78,7 @@ service.interceptors.response.use( type: 'error', duration: 3 * 1000 }) + return Promise.reject('error') } else if (code !== 200) { Notification.error({ title: response.data.msg diff --git a/src/views/productplan/workbench/order/index.vue b/src/views/productplan/workbench/order/index.vue index a384a99..3ca9306 100644 --- a/src/views/productplan/workbench/order/index.vue +++ b/src/views/productplan/workbench/order/index.vue @@ -569,7 +569,11 @@ export default { this.total = response.data.count this.loading = false } - ) + ).catch(()=>{ + this.dataList = [] + this.total = 0 + this.loading = false + }) }, // 订单类型字段转换