WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2025-03-27 0396d398bea811f5650d04ce5b55a232b4f58b98
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 + '】尚未注册!');
            }
        };
    }