From df6433d6a5d11235a34362a8506196b337cccd48 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 28 八月 2024 15:32:28 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
h5/main.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/h5/main.js b/h5/main.js
index 4c90c6f..41c035c 100644
--- a/h5/main.js
+++ b/h5/main.js
@@ -17,6 +17,13 @@
Vue.prototype.$store = store
Vue.prototype.$jump = (url) => {uni.navigateTo({url})}
Vue.prototype.$goBack = () => { uni.navigateBack() }
+Vue.prototype.showToast = (str) => {
+ uni.showToast({
+ title: str,
+ icon: 'none',
+ duration: 2000
+ })
+}
Vue.prototype.$eventBus = new Vue()
Vue.prototype.$onWait = new Promise((resolve) => {
Vue.prototype.$reslove = resolve
--
Gitblit v1.9.3