From e4964da051fada75e81985d4365d2a3387f95036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cgrape=E2=80=9D?= <18746553572@163.com> Date: Fri, 3 Feb 2023 11:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E9=99=90=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=90=8E=E5=8F=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main/Main.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/main/Main.vue b/src/views/main/Main.vue index baae5f4..ef5ae01 100644 --- a/src/views/main/Main.vue +++ b/src/views/main/Main.vue @@ -753,6 +753,7 @@ export default class Main extends Vue { response.data.records.forEach((element: any) => { this.productList.push(element); }); + // this.productList.push(response.data.records); if (this.pageNum === response.data.pages) { @@ -761,14 +762,19 @@ export default class Main extends Vue { this.finished = true; } this.pageNum = this.pageNum + 1; - - // Toast('短信发送成功,5分钟有效'); + //关闭加载 + this.loading = false; + } else { + Toast(response.msg+""); // Toast('短信发送失败,请重试'); + // 关闭加载 + //请求失败的时候关闭loading会无限发送请求 + // this.loading = false; } - //关闭加载 - this.loading = false; + }); + } //点击picket跳转界面 -- 2.22.0