From c8157c144e57cd4d3868ad1e3f141c8b1f632c20 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 7 May 2025 17:42:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix(AI):[#3663]=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E4=B8=AD=E8=AF=AD=E9=9F=B3=E8=BE=93=E5=85=A5=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E5=88=B0=E6=9C=89=E6=95=88=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=8F=90=E7=A4=BA=E2=80=9C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=90=AC=E6=B8=85=E6=82=A8=E8=AF=B4=E4=BA=86?= =?UTF-8?q?=E4=BB=80=E4=B9=88=EF=BC=8C=E8=AF=B7=E5=86=8D=E8=AF=B4=E4=B8=80?= =?UTF-8?q?=E9=81=8D=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index e024e72..d4dd311 100644 --- a/main.js +++ b/main.js @@ -75,13 +75,26 @@ const force2Decimal = function change2Decimal(value) { return forceToDecimal(value, 2) } +const toast = (title = '', position = 'center', success = function() {}) => { + uni.showToast({ + title, + mask: false, + icon: 'none', + duration: 2500, + position, + success + }) +} + Vue.prototype.$force2Decimal = force2Decimal Vue.prototype.$forceToDecimal = forceToDecimal Vue.config.productionTip = false App.mpType = 'app' Vue.prototype.$store = store -Vue.prototype.$dialog = dialog; +Vue.prototype.$dialog = dialog + +Vue.prototype.$toast = toast const app = new Vue(App)