From e55aa7ece892cd6078a6229d2c5b6a2dd029be7b Mon Sep 17 00:00:00 2001
From: ‘chensiAb’ <‘chenchenco03@163.com’>
Date: Tue, 04 Mar 2025 10:13:40 +0800
Subject: [PATCH] feat:index页自定义导航条

---
 common/Bridge.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/common/Bridge.js b/common/Bridge.js
index 5964423..841fa9c 100644
--- a/common/Bridge.js
+++ b/common/Bridge.js
@@ -192,6 +192,7 @@
             const { method, param, marker } = data;
             // 转换接收参数键名为驼峰
             const param2 = this.transKeyName('camel', param);
+            // 已注册协议
             if (this._receives[method]) {
                 // 有通知回调
                 if (marker) {
@@ -204,6 +205,10 @@
                     this._receives[method](param2);
                 }
             }
+            // 未注册的协议
+            else {
+                console.warn('BridgeTelling:通讯协议【' + method + '】尚未注册!');
+            }
         };
     }
 

--
Gitblit v1.9.1