@pubinfo/core 2.0.13 → 2.0.15
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/{AppSetting-Df8mPhxN.js → AppSetting-CF0Y36Kx.js} +27 -27
- package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-CD2VmdPG.js → HCheckList.vue_vue_type_script_setup_true_lang-B7ZyR4n6.js} +1 -1
- package/dist/{HToggle-CcxWxVmB.js → HToggle-Dap0xf8L.js} +1 -1
- package/dist/HeaderThinMenu-Bu4X2-vs.js +4 -0
- package/dist/{PreferencesContent-Bu8-g2qs.js → PreferencesContent-DWHQ2EOo.js} +57 -57
- package/dist/{SettingBreadcrumb-CTLEf4nt.js → SettingBreadcrumb-P-C21e5U.js} +5 -5
- package/dist/{SettingCopyright-B_ZS9FXO.js → SettingCopyright-XUQuMUND.js} +4 -4
- package/dist/{SettingEnableTransition-DgZyY8Rh.js → SettingEnableTransition-hJTXOtuP.js} +14 -14
- package/dist/{SettingHome-BN6WzWxX.js → SettingHome-1C9Ph1Dl.js} +4 -4
- package/dist/{SettingMenu-CNgEpRN_.js → SettingMenu-B2h4e61Z.js} +4 -4
- package/dist/{SettingMode-B_Sf7CqN.js → SettingMode-bStWvnHg.js} +9 -9
- package/dist/{SettingNavSearch-SQuD6lr7.js → SettingNavSearch-BvTlahqj.js} +4 -4
- package/dist/{SettingOther-CrgOHNra.js → SettingOther-ihHycIPn.js} +10 -10
- package/dist/{SettingPage-B4hfRME8.js → SettingPage-d8HGOfhZ.js} +2 -2
- package/dist/{SettingTabbar-7EcsmyZo.js → SettingTabbar-YLshyP8G.js} +25 -25
- package/dist/{SettingThemes-CVjQoEk4.js → SettingThemes-Do-SwCzx.js} +16 -16
- package/dist/{SettingToolbar-Bls_SdlL.js → SettingToolbar-DHbr1d6B.js} +7 -7
- package/dist/{SettingTopbar-jqUqG5vW.js → SettingTopbar-QwqH9maD.js} +5 -5
- package/dist/{SettingWidthMode-8LFo6UKy.js → SettingWidthMode-CGmv4JQk.js} +3 -3
- package/dist/core/resolver/layout.d.ts +1 -1
- package/dist/features/api/modules/auth/renzhengfuwu.d.ts +43 -1
- package/dist/features/api/modules/rbac/index.d.ts +1 -0
- package/dist/features/api/modules/rbac/yonghujiekou.d.ts +7 -0
- package/dist/features/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/features/api/modules/rbac/ziyuanjiekou.d.ts +7 -0
- package/dist/features/enum.d.ts +0 -1
- package/dist/features/stores/modules/iframe.d.ts +3 -3
- package/dist/{index-BX0RSX9i.js → index-B69sIuLj.js} +1 -1
- package/dist/{index-Bl4PBBmY.js → index-B8wbywmR.js} +1 -1
- package/dist/{index-Cc8zVLOC.js → index-CEodMjIg.js} +4 -4
- package/dist/{index-Dalsj2EI.js → index-Ctu3_aXu.js} +12229 -12106
- package/dist/{index-C6HIzbdv.js → index-Da79wYQP.js} +1 -1
- package/dist/{index-Cjl98Ty_.js → index-WLA0JU4Y.js} +17 -17
- package/dist/{index-Dw9-vGGZ.js → index-egA-td8O.js} +8551 -7697
- package/dist/index-ondkWqUz.js +4 -0
- package/dist/index.js +27 -27
- package/dist/{pick-Cghe_Z7L.js → pick-BS5wr8z9.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +14 -9
- package/runtime/components/PubinfoDev/index.d.ts +18 -0
- package/runtime/components/PubinfoDev/index.js +15 -0
- package/runtime/components/index.d.ts +1 -0
- package/runtime/components/index.js +1 -0
- package/runtime/index.d.ts +1 -0
- package/runtime/index.js +1 -0
- package/src/built-in/authorization/router.ts +1 -1
- package/src/built-in/layout-component/components/Content/IframeView.vue +16 -11
- package/src/built-in/layout-component/components/Content/index.vue +2 -1
- package/src/built-in/layout-component/components/Header/HeaderFullMenu/index.vue +8 -4
- package/src/built-in/settings/router.ts +15 -4
- package/src/built-in/system-info/components/SystemInfo.vue +67 -37
- package/src/core/resolver/layout.ts +13 -3
- package/src/features/api/modules/auth/index.ts +0 -2
- package/src/features/api/modules/auth/renzhengfuwu.ts +132 -1
- package/src/features/api/modules/auth/typings.d.ts +75 -1
- package/src/features/api/modules/configData/heibaimingdanfuwu.ts +2 -0
- package/src/features/api/modules/configData/index.ts +0 -2
- package/src/features/api/modules/configData/zidifuwu.ts +4 -0
- package/src/features/api/modules/rbac/gangweijiekou.ts +3 -0
- package/src/features/api/modules/rbac/index.ts +1 -2
- package/src/features/api/modules/rbac/typings.d.ts +97 -1
- package/src/features/api/modules/rbac/yonghujiekou.ts +25 -0
- package/src/features/api/modules/rbac/yonghushoucangbiaojiekou.ts +2 -0
- package/src/features/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +1 -0
- package/src/features/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/features/api/modules/rbac/ziyuanjiekou.ts +21 -0
- package/src/features/enum.ts +1 -1
- package/src/features/stores/modules/iframe.ts +12 -3
- package/src/features/stores/modules/menu.ts +20 -13
- package/src/features/stores/modules/route.ts +4 -3
- package/src/index.ts +1 -0
- package/types/global.d.ts +5 -0
- package/types/vue-router.d.ts +2 -2
- package/dist/HeaderThinMenu-BMjyPDYS.js +0 -4
- package/dist/index-CUbMQSBZ.js +0 -4
- package/src/features/components/MicroAppContainer/index.vue +0 -9
|
@@ -283,15 +283,16 @@ const useRouteStore = defineStore(
|
|
|
283
283
|
*/
|
|
284
284
|
const routes = computed<RouteData[]>(() => {
|
|
285
285
|
return needFilterRoutes.value
|
|
286
|
-
? filterAsyncRoutes(routesRaw.value, userStore
|
|
286
|
+
? filterAsyncRoutes(routesRaw.value, userStore?.user?.permissions ?? [])
|
|
287
287
|
: cloneDeep(routesRaw.value);
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
// 将设置 meta.singleMenu 的一级路由转换成二级路由
|
|
291
291
|
function convertSingleRoutes<T extends RouteData[]>(routes: T) {
|
|
292
|
-
const Layout = setupDefaultLayout();
|
|
293
|
-
|
|
294
292
|
routes.map((route) => {
|
|
293
|
+
// 在应用级配置 meta.layoutComponent
|
|
294
|
+
const Layout = setupDefaultLayout(route?.meta?.layoutComponent);
|
|
295
|
+
|
|
295
296
|
if (route.children && route.children.length > 0) {
|
|
296
297
|
route.children.forEach((item, index, arr) => {
|
|
297
298
|
if (item.meta?.singleMenu) {
|
package/src/index.ts
CHANGED
package/types/global.d.ts
CHANGED
package/types/vue-router.d.ts
CHANGED
|
@@ -48,12 +48,12 @@ export declare namespace Route {
|
|
|
48
48
|
type recordMainRawBasicMeta = Partial<Pick<RouterMetaRawBaseOptions, mainMeta>>;
|
|
49
49
|
|
|
50
50
|
interface recordMainRawNotDev {
|
|
51
|
-
meta: Merge<recordMainRawBasicMeta, { isDev?: false }>
|
|
51
|
+
meta: Merge<recordMainRawBasicMeta, { isDev?: false, layoutComponent?: string }>
|
|
52
52
|
children: RouteRecordRaw[]
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
interface recordMainRawDev {
|
|
56
|
-
meta: Merge<recordMainRawBasicMeta, { isDev: true }>
|
|
56
|
+
meta: Merge<recordMainRawBasicMeta, { isDev: true, layoutComponent?: string }>
|
|
57
57
|
children?: RouteRecordRaw[]
|
|
58
58
|
}
|
|
59
59
|
|
package/dist/index-CUbMQSBZ.js
DELETED