gw-gis-standard-global-vue3 1.1.83 → 1.1.84
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/gw-gis-standard-global.js +11 -11
- package/package.json +1 -1
|
@@ -2780,16 +2780,16 @@ var GisPermission = /*#__PURE__*/function () {
|
|
|
2780
2780
|
// const {getRouteTagsListFn, isHideNeedCache, removeIncludeListFn, routeTagsList} = gisRouteTags()
|
|
2781
2781
|
// window.gisRouteTags = gisRouteTags()
|
|
2782
2782
|
this.router.beforeEach(function (to, from, next) {
|
|
2783
|
+
var _window$top;
|
|
2783
2784
|
// 当前路由和跳转一样时则不跳转
|
|
2784
2785
|
// if (this.router?.currentRoute && to.path === this.router?.currentRoute?.value?.path) {
|
|
2785
2786
|
// return
|
|
2786
2787
|
// }
|
|
2787
|
-
// console.log('【to-router-from】', from)
|
|
2788
2788
|
// 仅供测试
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2789
|
+
if ((_window$top = window.top) !== null && _window$top !== void 0 && _window$top._showRouteTo) {
|
|
2790
|
+
console.log('【router-from】', from);
|
|
2791
|
+
console.log('【router-to】', to);
|
|
2792
|
+
}
|
|
2793
2793
|
// 缓存当前临时路由 - 会初次加载路由接口无需缓存
|
|
2794
2794
|
// cacheCurrentTempRouteFn(to)
|
|
2795
2795
|
// 这是判断路由变化后是否需要缓存
|
|
@@ -2939,11 +2939,11 @@ var GisPermission = /*#__PURE__*/function () {
|
|
|
2939
2939
|
// 判断在子应用中是否有父级token,非动态菜单才有作用,动态菜单则失效
|
|
2940
2940
|
// console.log('路由-child')
|
|
2941
2941
|
if (window.self !== window.top) {
|
|
2942
|
-
var _window$
|
|
2943
|
-
if ((_window$
|
|
2944
|
-
var _window$
|
|
2942
|
+
var _window$top2, _window$top3;
|
|
2943
|
+
if ((_window$top2 = window.top) !== null && _window$top2 !== void 0 && _window$top2.__MICRO_APP_BASE_APPLICATION__ && ((_window$top3 = window.top) === null || _window$top3 === void 0 || (_window$top3 = _window$top3.gisConfig) === null || _window$top3 === void 0 ? void 0 : _window$top3.VITE_APP_IS_MAIN_MICRO_APP) === 'true') {
|
|
2944
|
+
var _window$top4;
|
|
2945
2945
|
// 主应用是否有token
|
|
2946
|
-
if ((_window$
|
|
2946
|
+
if ((_window$top4 = window.top) !== null && _window$top4 !== void 0 && (_window$top4 = _window$top4.gisConfig) !== null && _window$top4 !== void 0 && _window$top4.VITE_APP_SET_GIS_TOKEN) {
|
|
2947
2947
|
var hasTopToken = getCache(constType.COOKIE).get(window.top.gisConfig.VITE_APP_SET_GIS_TOKEN);
|
|
2948
2948
|
if (hasTopToken) {
|
|
2949
2949
|
getCache(constType.COOKIE).set(window.gisConfig.VITE_APP_SET_GIS_TOKEN, hasTopToken);
|
|
@@ -3120,9 +3120,9 @@ function visibleIsCacheFn(to) {
|
|
|
3120
3120
|
|
|
3121
3121
|
// 进度条控制
|
|
3122
3122
|
var nProgressFn = function nProgressFn(NProgressConfigure) {
|
|
3123
|
-
var _window$
|
|
3123
|
+
var _window$top5;
|
|
3124
3124
|
// 嵌入的子应用不需要进度条
|
|
3125
|
-
if (!((_window$
|
|
3125
|
+
if (!((_window$top5 = window.top) !== null && _window$top5 !== void 0 && _window$top5.__MICRO_APP_BASE_APPLICATION__) || window.gisConfig.VITE_APP_IS_MAIN_MICRO_APP === 'true') {
|
|
3126
3126
|
// 这是进度条的一些配置项
|
|
3127
3127
|
NProgress.configure(NProgressConfigure);
|
|
3128
3128
|
NProgress.start();
|