bases/BridgeCenterBase.js | ●●●●● patch | view | raw | blame | history |
bases/BridgeCenterBase.js
@@ -31,8 +31,8 @@ return pages[pages.length - 1]; } $getCurrentPageUrl() { return this.$getCurrentPage().path; $getCurrentPagePath() { return this.$getCurrentPage().path.split('?')[0]; } $isCurrentPage(url) { @@ -72,6 +72,9 @@ } $pageBridge(page, method, res, callback) { if (!page.$component || !page.$component.$onBridge) { return; } try { res = typeof res === 'string' ? JSON.parse(res) : res; } catch (e) {