gw-gis-standard-global-vue3 1.1.76 → 1.1.78
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.
|
@@ -547,7 +547,7 @@ var gisGlobal = /*#__PURE__*/function () {
|
|
|
547
547
|
});
|
|
548
548
|
this.name = '';
|
|
549
549
|
this.storage = '';
|
|
550
|
-
this.xu = 12345
|
|
550
|
+
// this.xu = 12345
|
|
551
551
|
this.fullScreenState = false;
|
|
552
552
|
this.routerComponentAll = [];
|
|
553
553
|
this.router = [];
|
|
@@ -2903,6 +2903,7 @@ var GisPermission = /*#__PURE__*/function () {
|
|
|
2903
2903
|
// 注意:权限不足,直接跳转403
|
|
2904
2904
|
if (to.matched.length > 0) {
|
|
2905
2905
|
var lastRouteMsg = to.matched.at(-1);
|
|
2906
|
+
lastRouteMsg.meta = _objectSpread2(_objectSpread2({}, to.meta), lastRouteMsg.meta);
|
|
2906
2907
|
if (lastRouteMsg.meta.GwRoleSet && !lastRouteMsg.meta.visible) {
|
|
2907
2908
|
// 找整个模块第一个显示的页面
|
|
2908
2909
|
if (to.path) {
|
|
@@ -2925,7 +2926,7 @@ var GisPermission = /*#__PURE__*/function () {
|
|
|
2925
2926
|
if (findRouteMsg) {
|
|
2926
2927
|
var _findRouteMsg, _findRouteMsg4, _findRouteMsg5;
|
|
2927
2928
|
// 进入首页 如果配置的首页该用户无法访问,则跳转到第一个显示的页面
|
|
2928
|
-
if ((_findRouteMsg = findRouteMsg) !== null && _findRouteMsg !== void 0 && (_findRouteMsg = _findRouteMsg.meta) !== null && _findRouteMsg !== void 0 && _findRouteMsg.isHomePage || to.redirectedFrom && to.redirectedFrom.path === "/" || to.redirectedFrom && to.redirectedFrom.fullPath === "/" || to.path === "/") {
|
|
2929
|
+
if ((_findRouteMsg = findRouteMsg) !== null && _findRouteMsg !== void 0 && (_findRouteMsg = _findRouteMsg.meta) !== null && _findRouteMsg !== void 0 && _findRouteMsg.isHomePage && (findRouteMsg.meta.visible || !findRouteMsg.meta.hasOwnProperty('visible')) || to.redirectedFrom && to.redirectedFrom.path === "/" || to.redirectedFrom && to.redirectedFrom.fullPath === "/" || to.path === "/") {
|
|
2929
2930
|
var _to$meta, _to$meta2, _findRouteMsg2, _findRouteMsg3, _lastRouteMsg$meta, _lastRouteMsg$meta2;
|
|
2930
2931
|
if (to !== null && to !== void 0 && (_to$meta = to.meta) !== null && _to$meta !== void 0 && _to$meta.hasOwnProperty('visible') && !(to !== null && to !== void 0 && (_to$meta2 = to.meta) !== null && _to$meta2 !== void 0 && _to$meta2.visible) || (_findRouteMsg2 = findRouteMsg) !== null && _findRouteMsg2 !== void 0 && (_findRouteMsg2 = _findRouteMsg2.meta) !== null && _findRouteMsg2 !== void 0 && _findRouteMsg2.hasOwnProperty('visible') && !((_findRouteMsg3 = findRouteMsg) !== null && _findRouteMsg3 !== void 0 && (_findRouteMsg3 = _findRouteMsg3.meta) !== null && _findRouteMsg3 !== void 0 && _findRouteMsg3.visible) || lastRouteMsg !== null && lastRouteMsg !== void 0 && (_lastRouteMsg$meta = lastRouteMsg.meta) !== null && _lastRouteMsg$meta !== void 0 && _lastRouteMsg$meta.hasOwnProperty('visible') && !(lastRouteMsg !== null && lastRouteMsg !== void 0 && (_lastRouteMsg$meta2 = lastRouteMsg.meta) !== null && _lastRouteMsg$meta2 !== void 0 && _lastRouteMsg$meta2.visible)) {
|
|
2931
2932
|
var hasShowHomePage = undefined;
|