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.
- package/dist/index.js +2 -1
- 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
|
/**
|