From 1382a7990e9b13f60c6416ada5477673a934dd16 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期四, 29 八月 2024 09:02:57 +0800 Subject: [PATCH] ll --- h5/main.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/h5/main.js b/h5/main.js index 41c035c..619eb5b 100644 --- a/h5/main.js +++ b/h5/main.js @@ -18,10 +18,12 @@ Vue.prototype.$jump = (url) => {uni.navigateTo({url})} Vue.prototype.$goBack = () => { uni.navigateBack() } Vue.prototype.showToast = (str) => { - uni.showToast({ - title: str, - icon: 'none', - duration: 2000 + setTimeout(() => { + uni.showToast({ + title: str, + icon: 'none', + duration: 2000 + }) }) } Vue.prototype.$eventBus = new Vue() -- Gitblit v1.9.3