From 4ec143f5ff8ca81417fefc08362b4e1d6e3f713c Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Thu, 09 Jun 2022 10:48:46 +0800
Subject: [PATCH] 实现主机地址独立管理工具,第二部分

---
 common/Tools.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/common/Tools.js b/common/Tools.js
index 0a8afb9..7a9af98 100644
--- a/common/Tools.js
+++ b/common/Tools.js
@@ -12,12 +12,13 @@
      * 显示消息
      * @param msg
      * @param [duration=2000]
+     * @param [mask=false]
      */
-    static toast(msg, duration = 2000) {
+    static toast(msg, duration = 2000, mask = false) {
         Taro.showToast({
             title: msg,
             icon: 'none',
-            mask: true,
+            mask,
             duration,
         });
     }
@@ -86,7 +87,7 @@
                     img.onerror = null;
                     callback && callback(false);
                 };
-                img.src = 'http://test.zhiheiot.com/download/buildArchive/online.png?t=' + Date.now();
+                img.src = 'http://tt.zhiheiot.com/static/online.png?t=' + Date.now();
             }
             // 网络未开启
             else {

--
Gitblit v1.9.1