@fonixtree/magic-design 0.1.6 → 0.1.7

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.
@@ -266,7 +266,9 @@ var navigateTo = function navigateTo(url) {
266
266
  }
267
267
 
268
268
  if (url.startsWith('/')) {
269
- window.magicDesign.history.push(url);
269
+ /** 相同路由跳转不生效 例如:/poster/71 跳转 /poster/72 */
270
+ // window.magicDesign.history.push(url);
271
+ window.location.href = url;
270
272
  } else {
271
273
  window.location.href = url;
272
274
  }
@@ -266,7 +266,9 @@ var navigateTo = function navigateTo(url) {
266
266
  }
267
267
 
268
268
  if (url.startsWith('/')) {
269
- window.magicDesign.history.push(url);
269
+ /** 相同路由跳转不生效 例如:/poster/71 跳转 /poster/72 */
270
+ // window.magicDesign.history.push(url);
271
+ window.location.href = url;
270
272
  } else {
271
273
  window.location.href = url;
272
274
  }
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.6",
4
+ "version": "0.1.7",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",