From a01a671ab010fe6fca3632fd07d6b7c32f3dfc83 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 15 Nov 2021 17:34:18 +0800
Subject: [PATCH] 混合App模式下,登陆异常时,改为跳转首页去取消登陆

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

diff --git a/common/BridgeTelling.js b/common/BridgeTelling.js
index 3517b71..5218cf1 100644
--- a/common/BridgeTelling.js
+++ b/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);
     }
 

--
Gitblit v1.9.1