@fonixtree/magic-design 0.1.90 → 0.1.91

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.
@@ -310,9 +310,10 @@ var clickUrl = function clickUrl(url) {
310
310
  }
311
311
 
312
312
  console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
313
- // if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
314
- // return;
315
- // }
313
+
314
+ if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
315
+ return;
316
+ }
316
317
 
317
318
  var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
318
319
  link = _b.link,
@@ -396,9 +397,9 @@ var clickUrl = function clickUrl(url) {
396
397
  } else {
397
398
  (0, _commonUtil.navigateTo)(link);
398
399
  }
400
+ } else {
401
+ (0, _commonUtil.navigateTo)(link);
399
402
  }
400
-
401
- (0, _commonUtil.navigateTo)(link);
402
403
  }
403
404
  };
404
405
 
@@ -310,9 +310,10 @@ var clickUrl = function clickUrl(url) {
310
310
  }
311
311
 
312
312
  console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
313
- // if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
314
- // return;
315
- // }
313
+
314
+ if (window.magicDesign.readOnly || window.magicDesign.mode !== 'renderer' || !url || window.magicDesign.outputType == 'html') {
315
+ return;
316
+ }
316
317
 
317
318
  var _b = _typeof(url) === 'object' ? (0, _businessUtil.newParseUrl)(url) : (0, _businessUtil.parseUrl)(url),
318
319
  link = _b.link,
@@ -396,9 +397,9 @@ var clickUrl = function clickUrl(url) {
396
397
  } else {
397
398
  (0, _commonUtil.navigateTo)(link);
398
399
  }
400
+ } else {
401
+ (0, _commonUtil.navigateTo)(link);
399
402
  }
400
-
401
- (0, _commonUtil.navigateTo)(link);
402
403
  }
403
404
  };
404
405
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.90",
4
+ "version": "0.1.91",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",