From d669eb89c39aba5b980e52b8032e96a0d0ea9271 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期六, 11 十月 2025 08:36:41 +0800
Subject: [PATCH] 设置弹框默认显示时间
---
manifest.json | 4 ++--
main.js | 12 +++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/main.js b/main.js
index 983fc86..75e4530 100644
--- a/main.js
+++ b/main.js
@@ -32,4 +32,14 @@
app
}
}
-// #endif
\ No newline at end of file
+// #endif
+// main.js uni.showToast 瀹炵幇鍏ㄥ眬鎷︽埅璁剧疆榛樿鎻愮ず鏃堕棿涓�3.5绉�
+const originalShowToast = uni.showToast;
+uni.showToast = (options) => {
+ originalShowToast({
+ duration: options.duration || 3500, // 榛樿2绉�
+ icon: options.icon || 'none',
+ title: options.title || 'none',
+ ...options
+ });
+};
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index d279f43..e363efb 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "鏅轰簯LMES",
"appid" : "__UNI__B002F49",
"description" : "",
- "versionName" : "1.0.96",
- "versionCode" : 196,
+ "versionName" : "1.0.97",
+ "versionCode" : 197,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
--
Gitblit v1.9.1