WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-11-11 d0ba3b58991e1be054a45ac914119916eb76c5fe
优化跨端通讯接收API
3 files modified
7 ■■■■ changed files
common/Bridge.js 1 ●●●● patch | view | raw | blame | history
common/BridgeTelling.js 4 ●●●● patch | view | raw | blame | history
forms/input/CInputScanCode.vue 2 ●●●●● patch | view | raw | blame | history
common/Bridge.js
@@ -151,7 +151,6 @@
                // 有通知回调
                if (marker) {
                    this._receives[method](param2, (param2) => {
                        debugger;
                        this._sendTelling(method, param2 || {}, marker);
                    });
                }
common/BridgeTelling.js
@@ -72,6 +72,10 @@
    }
    $pageBridge(page, method, res, callback) {
        try {
            res = typeof res === 'string' ? JSON.parse(res) : res;
        } catch (e) {
        }
        page.$component.$onBridge(method, res, callback);
    }
forms/input/CInputScanCode.vue
@@ -101,7 +101,9 @@
                if (this.onScaning) {
                    this.onScaning(res => {
                        this.scaning = false;
                        if (res.result) {
                        this.itemRes.onChange(res.result);
                        }
                    });
                }
            }