@fonixtree/magic-design 1.0.215 → 1.0.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,11 +79,12 @@ function (_super) {
79
79
  }
80
80
 
81
81
  if (version === 'v1' || isNeedLogin) {
82
- if ((0, _commonUtil.checkLogin)(true)) {
82
+ if ((0, _commonUtil.checkLogin)(true, urlTemp)) {
83
83
  (0, _commonUtil.navigateTo)(urlTemp);
84
- } else {
85
- (0, _commonUtil.navigateTo)(urlTemp);
86
- }
84
+ } // 未登录时,checkLogin已经处理了跳转到登录页的逻辑,登录后会通过redirectUrl自动跳转回来
85
+
86
+
87
+ return;
87
88
  } else {
88
89
  (0, _commonUtil.navigateTo)(url);
89
90
  }
@@ -79,11 +79,12 @@ function (_super) {
79
79
  }
80
80
 
81
81
  if (version === 'v1' || isNeedLogin) {
82
- if ((0, _commonUtil.checkLogin)(true)) {
82
+ if ((0, _commonUtil.checkLogin)(true, urlTemp)) {
83
83
  (0, _commonUtil.navigateTo)(urlTemp);
84
- } else {
85
- (0, _commonUtil.navigateTo)(urlTemp);
86
- }
84
+ } // 未登录时,checkLogin已经处理了跳转到登录页的逻辑,登录后会通过redirectUrl自动跳转回来
85
+
86
+
87
+ return;
87
88
  } else {
88
89
  (0, _commonUtil.navigateTo)(url);
89
90
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.215",
4
+ "version": "1.0.216",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",