From 7f4ebd356da3b34a39d5079e5d9d57cc3b0e46f3 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 6 Mar 2024 16:49:00 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83=E4=B8=8B=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=BF=85=E8=A6=81=E7=9A=84toast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unicloud-call-function.uvue | 3 --- .../unicloud-database/unicloud-database.uvue | 10 ---------- .../unicloud-import-object.uvue | 18 ------------------ 3 files changed, 31 deletions(-) diff --git a/pages/API/unicloud-call-function/unicloud-call-function.uvue b/pages/API/unicloud-call-function/unicloud-call-function.uvue index 1983783e..ff984f32 100644 --- a/pages/API/unicloud-call-function/unicloud-call-function.uvue +++ b/pages/API/unicloud-call-function/unicloud-call-function.uvue @@ -41,9 +41,6 @@ showCancel: false }) } else { - uni.showToast({ - title: content - }) console.log(title, content) } }, diff --git a/pages/API/unicloud-database/unicloud-database.uvue b/pages/API/unicloud-database/unicloud-database.uvue index 6316fedf..aeb650c1 100644 --- a/pages/API/unicloud-database/unicloud-database.uvue +++ b/pages/API/unicloud-database/unicloud-database.uvue @@ -38,13 +38,6 @@ isUniTest: false } }, - onLoad() { - }, - onUnload() { - if (this.isUniTest) { - uni.hideToast() - } - }, computed: { dataTag() : string { return this.isUniTest ? 'default-tag' + Date.now() : 'default-tag' @@ -59,9 +52,6 @@ showCancel: false }) } else { - uni.showToast({ - title: content - }) console.log(title, content) } }, diff --git a/pages/API/unicloud-import-object/unicloud-import-object.uvue b/pages/API/unicloud-import-object/unicloud-import-object.uvue index fca0d3db..e02c383a 100644 --- a/pages/API/unicloud-import-object/unicloud-import-object.uvue +++ b/pages/API/unicloud-import-object/unicloud-import-object.uvue @@ -42,11 +42,6 @@ isUniTest: false } }, - onUnload() { - if (this.isUniTest) { - uni.hideToast() - } - }, methods: { notify(content : string, title : string) { if (!this.isUniTest) { @@ -56,9 +51,6 @@ showCancel: false }) } else { - uni.showToast({ - title: content - }) console.log(title, content) } }, @@ -101,11 +93,6 @@ const error = err as UniCloudError this.failErrCode = error.errCode as string console.error(error) - if (this.isUniTest) { - uni.showToast({ - title: error.errMsg - }) - } }) }, async failWithNumberErrCode() : Promise { @@ -119,11 +106,6 @@ const error = err as UniCloudError this.failNumberErrCode = error.errCode as number console.error(error) - if (this.isUniTest) { - uni.showToast({ - title: error.errMsg - }) - } }) }, async success() : Promise { -- GitLab