@fonixtree/magic-design 2.0.24 → 2.0.25

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.
@@ -313,7 +313,8 @@ var clickUrl = function clickUrl(url) {
313
313
 
314
314
  if ((0, _androidUtil.browserVersion)().isAshitaApp) {
315
315
  (0, _androidUtil.sendToApp)(data);
316
- } else if ((0, _androidUtil.browserVersion)().isApp && data.action === 'jump') {
316
+ } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
317
+ // 兼容Nuri的 绝对路径跳转
317
318
  (0, _androidUtil.sendToAndroid)({
318
319
  type: 'jumpBrowser',
319
320
  params: {
@@ -313,7 +313,8 @@ var clickUrl = function clickUrl(url) {
313
313
 
314
314
  if ((0, _androidUtil.browserVersion)().isAshitaApp) {
315
315
  (0, _androidUtil.sendToApp)(data);
316
- } else if ((0, _androidUtil.browserVersion)().isApp && data.action === 'jump') {
316
+ } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
317
+ // 兼容Nuri的 绝对路径跳转
317
318
  (0, _androidUtil.sendToAndroid)({
318
319
  type: 'jumpBrowser',
319
320
  params: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.24",
4
+ "version": "2.0.25",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",