gw-gis-standard-global-vue3 1.1.80 → 1.1.82
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.
|
@@ -1421,8 +1421,10 @@ function filterRolesRouterFn2(routerList) {
|
|
|
1421
1421
|
// if (!routerList[i].meta.notInLayout && !list.includes(routerList[i].meta[menuFilterKey])) {
|
|
1422
1422
|
if (!routerList[i].meta.notInLayout) {
|
|
1423
1423
|
if (list.includes(routerList[i].meta[menuFilterKey])) {
|
|
1424
|
-
routerList[i].meta.gisInfoSetShowRole = true
|
|
1424
|
+
// routerList[i].meta.gisInfoSetShowRole = true
|
|
1425
|
+
routerList[i].meta.visible = true;
|
|
1425
1426
|
} else {
|
|
1427
|
+
// console.log('menuFilterKeycode', routerList[i].meta[menuFilterKey])
|
|
1426
1428
|
routerList[i].meta.gisInfoSetHideRole = true;
|
|
1427
1429
|
routerList[i].meta.visible = false;
|
|
1428
1430
|
}
|
|
@@ -2984,7 +2986,6 @@ var GisPermission = /*#__PURE__*/function () {
|
|
|
2984
2986
|
if (to.matched.length > 0) {
|
|
2985
2987
|
var _to$meta, _to$redirectedFrom, _to$meta2, _lastRouteMsg$meta;
|
|
2986
2988
|
var lastRouteMsg = to.matched.at(-1);
|
|
2987
|
-
// const lastRouteMsg = to
|
|
2988
2989
|
console.log('lastRouteMsglastRouteMsg', lastRouteMsg);
|
|
2989
2990
|
// 进入主页,主页如果已被隐藏则进去第一个显示的页面
|
|
2990
2991
|
if ((_to$meta = to.meta) !== null && _to$meta !== void 0 && _to$meta.isHomePage && (to === null || to === void 0 || (_to$redirectedFrom = to.redirectedFrom) === null || _to$redirectedFrom === void 0 ? void 0 : _to$redirectedFrom.path) === '/') {
|