@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.
- package/es/utils/coreUtil.js +6 -5
- package/lib/utils/coreUtil.js +6 -5
- package/package.json +1 -1
package/es/utils/coreUtil.js
CHANGED
|
@@ -310,9 +310,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
|
-
|
|
314
|
-
|
|
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/lib/utils/coreUtil.js
CHANGED
|
@@ -310,9 +310,10 @@ var clickUrl = function clickUrl(url) {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
console.log('clickUrl...', url); // 只读模式,设计模式,url为空,邮箱模版
|
|
313
|
-
|
|
314
|
-
|
|
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
|
|