@fonixtree/magic-design 1.0.34 → 1.0.36
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/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/utils/commonUtil.js +14 -6
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/utils/commonUtil.js +14 -6
- package/package.json +1 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
package/es/utils/commonUtil.js
CHANGED
|
@@ -291,14 +291,22 @@ var navigateTo = function navigateTo(url) {
|
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
var _a = url.split(';'),
|
|
295
|
+
h5Url = _a[0],
|
|
296
|
+
appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
if (!appUrl && !h5Url.startsWith('/')) {
|
|
300
|
+
window.location.href = h5Url;
|
|
301
|
+
} else if (window.magicDesign.history) {
|
|
302
|
+
window.magicDesign.history.push(url);
|
|
303
|
+
} else if (window.magicDesign.navigatePreUrl) {
|
|
304
|
+
// 预览模式跳转
|
|
305
|
+
if (h5Url.startsWith('/')) {
|
|
298
306
|
window.location.href = "" + window.magicDesign.navigatePreUrl + url;
|
|
307
|
+
} else {
|
|
308
|
+
window.location.href = h5Url;
|
|
299
309
|
}
|
|
300
|
-
} else {
|
|
301
|
-
window.location.href = url;
|
|
302
310
|
}
|
|
303
311
|
};
|
|
304
312
|
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -291,14 +291,22 @@ var navigateTo = function navigateTo(url) {
|
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
var _a = url.split(';'),
|
|
295
|
+
h5Url = _a[0],
|
|
296
|
+
appUrl = _a[1]; // 未配置App路径并且h5绝对路径时直接跳转,其他情况让业务层处理
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
if (!appUrl && !h5Url.startsWith('/')) {
|
|
300
|
+
window.location.href = h5Url;
|
|
301
|
+
} else if (window.magicDesign.history) {
|
|
302
|
+
window.magicDesign.history.push(url);
|
|
303
|
+
} else if (window.magicDesign.navigatePreUrl) {
|
|
304
|
+
// 预览模式跳转
|
|
305
|
+
if (h5Url.startsWith('/')) {
|
|
298
306
|
window.location.href = "" + window.magicDesign.navigatePreUrl + url;
|
|
307
|
+
} else {
|
|
308
|
+
window.location.href = h5Url;
|
|
299
309
|
}
|
|
300
|
-
} else {
|
|
301
|
-
window.location.href = url;
|
|
302
310
|
}
|
|
303
311
|
};
|
|
304
312
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|