From 24b38ab2eb6086c39342e810cf0b7dbad3e00aa9 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 2 Apr 2024 15:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../photographicDevice/components/workStatus.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/photographicDevice/components/workStatus.vue b/src/views/photographicDevice/components/workStatus.vue index ad9beb6..b028d80 100644 --- a/src/views/photographicDevice/components/workStatus.vue +++ b/src/views/photographicDevice/components/workStatus.vue @@ -265,11 +265,17 @@ export default { pageindex: this.page, pagesize: this.pageSize, }).then((res) => { - this.listData = res.data.list; - this.total = res.data.total; - this.$nextTick(() => { - this.loading = false; - }); + if (res.code == 200) { + this.listData = res.data.list; + this.total = res.data.total; + this.$nextTick(() => { + this.loading = false; + }); + } else { + this.$nextTick(() => { + this.loading = false; + }); + } }); }, //点击分页