fast-vue-multi-pages-vite 1.3.21 → 1.3.23

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -679,12 +679,13 @@ var FastVueMultiWindow = class FastVueMultiWindow {
679
679
  if (window["__LOCATION_HREF"]) urls.push(window["__LOCATION_HREF"]);
680
680
  let _get_all_url = (fromWindow) => {
681
681
  if (!fromWindow) return;
682
+ if (window.top && fromWindow === window.top) return;
682
683
  urls.push(fromWindow.location.href);
683
684
  if (fromWindow.parent && fromWindow.parent === fromWindow) return;
684
685
  _get_all_url(fromWindow.parent);
685
686
  };
686
687
  _get_all_url(window);
687
- if (includeTopWindow && window.top !== window) _get_all_url(window.top);
688
+ if (includeTopWindow && window.top && window.top !== window) _get_all_url(window.top);
688
689
  return urls;
689
690
  }
690
691
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-vue-multi-pages-vite",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "author": "janesen",
5
5
  "description": "Vite-快速搭建VUE项目工具类的基本库,主要用于多个页面独立生成html",
6
6
  "main": "./dist/index.js",