@pubinfo/core 2.0.0-beta.3 → 2.0.0-beta.31
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/{es/AppSetting-BXQHV5F8.js → dist/AppSetting-C1dyZ-8E.js} +21 -20
- package/{es/HCheckList.vue_vue_type_script_setup_true_lang-DanhyVxU.js → dist/HCheckList.vue_vue_type_script_setup_true_lang-B3wESRn7.js} +2 -2
- package/{es/PreferencesContent-CQkwkQ_1.js → dist/PreferencesContent-DgycKl9e.js} +124 -120
- package/{es/SettingBreadcrumb-Bp_66IFN.js → dist/SettingBreadcrumb-BlgX0ZNE.js} +2 -2
- package/{es/SettingCopyright-BPSnoTQb.js → dist/SettingCopyright-FmqadL1w.js} +1 -1
- package/{es/SettingEnableTransition-Rx2-0Wxj.js → dist/SettingEnableTransition-dzMgw8cN.js} +1 -1
- package/{es/SettingHome-BW27PQqs.js → dist/SettingHome-BwlXsTTt.js} +1 -1
- package/{es/SettingMenu-D5gdNfal.js → dist/SettingMenu-B5tHMS24.js} +2 -2
- package/{es/SettingMode-B4_HGVez.js → dist/SettingMode-Bh0mvh66.js} +1 -1
- package/{es/SettingNavSearch-CRovYxzh.js → dist/SettingNavSearch-D4g24uwl.js} +1 -1
- package/{es/SettingOther-D0zo11vM.js → dist/SettingOther-DwTtu6As.js} +1 -1
- package/{es/SettingPage-B8GHuoKV.js → dist/SettingPage-cDQXtwcG.js} +1 -1
- package/{es/SettingTabbar-Cn_QzvA8.js → dist/SettingTabbar-m8X7jEJH.js} +2 -2
- package/dist/SettingThemes-CX9ISeD_.js +145 -0
- package/{es/SettingToolbar-Csl2gnfi.js → dist/SettingToolbar-ByLjBezg.js} +1 -1
- package/{es/SettingTopbar-CaHjQULM.js → dist/SettingTopbar-o8wBZolp.js} +2 -2
- package/{es/SettingWidthMode-BGiP7gTw.js → dist/SettingWidthMode-Ux60mKiv.js} +1 -1
- package/{es/TopThinMode-DWm0oY5Y.js → dist/TopThinMode-17GrCZdo.js} +1 -1
- package/{es/_...all_-DI_QAUox.js → dist/_...all_-6l5FWUkL.js} +1 -1
- package/{es → dist}/api/index.d.ts +2 -1
- package/{es/colors-oRlAXMUC.js → dist/colors-DiWJrScm.js} +1 -1
- package/dist/components/PubinfoIcon/register.d.ts +9 -0
- package/{lib → dist}/components/PubinfoProvider/index.d.ts +1 -0
- package/{lib → dist}/composables/auth.d.ts +1 -1
- package/{es → dist}/context.d.ts +1 -1
- package/{es/index-P2cA5UeU.js → dist/index-Be7jJtXg.js} +38 -36
- package/{es/index-BHkrq701.js → dist/index-BmMbAV1Y.js} +33 -29
- package/{es/index-ChOUZNbk.js → dist/index-CfasTv4x.js} +6 -6
- package/{es/index-D8eeneI_.js → dist/index-Ckgil96Y.js} +25 -25
- package/{es/index-Dav3jQVP.js → dist/index-De_ME_Ws.js} +31 -31
- package/{es/index-DvHnVMX5.js → dist/index-DgpcBgWl.js} +6189 -5995
- package/{es/index-B9I6Pru6.js → dist/index-Dzwhw1L9.js} +57 -62
- package/{es/index-BkqnOkyO.js → dist/index-Md7zV10q.js} +12 -12
- package/{es/index-BvVAS3S-.js → dist/index-bsi-FZDt.js} +21 -13
- package/{es → dist}/index.d.ts +1 -0
- package/dist/index.js +77 -0
- package/{es/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-BBe8CvCV.js → dist/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-B3Eieo0k.js} +315 -297
- package/{lib → dist}/interface.d.ts +13 -0
- package/{lib → dist}/layout/Layout.vue.d.ts +2 -2
- package/{es → dist}/layout/composables/useContext.d.ts +1 -2
- package/{lib → dist}/layout/ui-kit/HDialog.vue.d.ts +12 -1
- package/{lib → dist}/layout/ui-kit/HSlideover.vue.d.ts +12 -1
- package/{es → dist}/layout/ui-kit/HTabList.vue.d.ts +2 -2
- package/{es/notification-6D5hA7Bp.js → dist/menu-CC5544p-.js} +2669 -2681
- package/{es/pick-Br-UKn7B.js → dist/pick-CJo2YiT-.js} +1 -1
- package/{es → dist}/request.js +399 -390
- package/{es → dist}/route/index.d.ts +0 -1
- package/dist/route/routes.d.ts +24 -0
- package/{lib → dist}/stores/modules/favorites.d.ts +1 -0
- package/{es → dist}/stores/modules/iframe.d.ts +1 -0
- package/{es → dist}/stores/modules/index.d.ts +8 -1
- package/{es → dist}/stores/modules/keepAlive.d.ts +1 -0
- package/{es → dist}/stores/modules/menu.d.ts +1 -0
- package/{es → dist}/stores/modules/route.d.ts +1 -0
- package/{lib → dist}/stores/modules/settings.d.ts +1 -0
- package/{lib → dist}/stores/modules/tabbar.d.ts +1 -0
- package/dist/stores/modules/user.d.ts +36 -0
- package/dist/style.css +9 -0
- package/{lib → dist}/utils/index.d.ts +6 -0
- package/package.json +38 -44
- package/src/api/index.ts +3 -1
- package/src/api/modules/configData/xitongpeizhifuwu.ts +3 -3
- package/src/assets/styles/globals.scss +6 -6
- package/src/components/PubinfoApp/index.vue +1 -1
- package/src/components/PubinfoIcon/index.vue +3 -1
- package/src/components/PubinfoIcon/register.ts +19 -0
- package/src/components/PubinfoProvider/index.ts +3 -2
- package/src/composables/auth.ts +1 -1
- package/src/context.ts +1 -2
- package/src/create.ts +7 -0
- package/src/index.ts +1 -0
- package/src/interface.ts +13 -0
- package/src/layout/Layout.vue +50 -59
- package/src/layout/components/Content/index.vue +34 -13
- package/src/layout/components/Header/TopMode/index.vue +12 -16
- package/src/layout/components/Header/index.vue +5 -5
- package/src/layout/components/SettingBar/components/SettingThemes.vue +7 -5
- package/src/layout/components/SettingBar/index.vue +3 -1
- package/src/layout/components/Sidebar/MainSidebar.vue +4 -7
- package/src/layout/components/Tools/Preferences/PreferencesContent.vue +2 -1
- package/src/layout/components/Tools/index.vue +9 -32
- package/src/layout/composables/useContext.ts +0 -2
- package/src/layout/composables/useMainPage.ts +1 -1
- package/src/layout/composables/useWatermark.ts +2 -2
- package/src/layout/provider.ts +7 -4
- package/src/layout/ui-kit/HDialog.vue +4 -1
- package/src/layout/ui-kit/HSlideover.vue +4 -1
- package/src/pages/system/change-organization/index.vue +3 -3
- package/src/pages/system/not-permission/index.vue +2 -2
- package/src/route/index.ts +0 -1
- package/src/route/routes.ts +87 -55
- package/src/stores/helper.ts +2 -2
- package/src/stores/modules/favorites.ts +1 -0
- package/src/stores/modules/iframe.ts +1 -0
- package/src/stores/modules/index.ts +8 -1
- package/src/stores/modules/keepAlive.ts +1 -0
- package/src/stores/modules/menu.ts +25 -1
- package/src/stores/modules/route.ts +14 -5
- package/src/stores/modules/settings.ts +1 -0
- package/src/stores/modules/tabbar.ts +1 -0
- package/src/stores/modules/user.ts +56 -20
- package/src/stores/plugin/sideEffect/favoritesStorage.ts +1 -1
- package/src/stores/plugin/sideEffect/tabbarStorage.ts +1 -1
- package/src/utils/index.ts +14 -0
- package/src/utils/watermark.ts +1 -1
- package/types/vue-router.d.ts +3 -1
- package/es/SettingThemes-D_DpEncn.js +0 -144
- package/es/components/PubinfoProvider/index.d.ts +0 -8
- package/es/composables/auth.d.ts +0 -8
- package/es/index-DTQQt_XY.js +0 -10
- package/es/index.js +0 -76
- package/es/interface.d.ts +0 -29
- package/es/layout/Layout.vue.d.ts +0 -20
- package/es/layout/ui-kit/HDialog.vue.d.ts +0 -28
- package/es/layout/ui-kit/HSlideover.vue.d.ts +0 -30
- package/es/pages/system/not-permission/index.vue.d.ts +0 -2
- package/es/route/async.d.ts +0 -9
- package/es/route/routes.d.ts +0 -3
- package/es/stores/modules/favorites.d.ts +0 -32
- package/es/stores/modules/notification.d.ts +0 -18
- package/es/stores/modules/settings.d.ts +0 -85
- package/es/stores/modules/tabbar.d.ts +0 -59
- package/es/stores/modules/user.d.ts +0 -3
- package/es/style.css +0 -9
- package/es/utils/index.d.ts +0 -14
- package/lib/AppSetting-CCiwpjoq.cjs +0 -1
- package/lib/HButton.vue_vue_type_script_setup_true_lang-D-XkyoXl.cjs +0 -1
- package/lib/HCheckList.vue_vue_type_script_setup_true_lang-DwA8einQ.cjs +0 -1
- package/lib/HDivider-DCfDgE8l.cjs +0 -1
- package/lib/HInput.vue_vue_type_script_setup_true_lang-CwS0mGyL.cjs +0 -1
- package/lib/HToggle-BP6YYf-s.cjs +0 -1
- package/lib/PreferencesContent-DgL-Jc_J.cjs +0 -3
- package/lib/SettingBreadcrumb-BQ78yEP4.cjs +0 -1
- package/lib/SettingCopyright-x7aPlkQy.cjs +0 -1
- package/lib/SettingEnableTransition-CD3-44Iy.cjs +0 -1
- package/lib/SettingHome-u52oz6i8.cjs +0 -1
- package/lib/SettingMenu-DsElOvvv.cjs +0 -1
- package/lib/SettingMode-C_kgpTxw.cjs +0 -1
- package/lib/SettingNavSearch-3auTi8UW.cjs +0 -1
- package/lib/SettingOther-6XGQq7OA.cjs +0 -1
- package/lib/SettingPage-C8yIHpLc.cjs +0 -1
- package/lib/SettingTabbar-K-nHb89z.cjs +0 -1
- package/lib/SettingThemes-BeNwFz7K.cjs +0 -1
- package/lib/SettingToolbar-Be1V7lwV.cjs +0 -1
- package/lib/SettingTopbar-C-j8O3c8.cjs +0 -1
- package/lib/SettingWidthMode-GMjAF-s3.cjs +0 -1
- package/lib/TopThinMode-DGUvyHT2.cjs +0 -1
- package/lib/_...all_-C4CXjAo9.cjs +0 -1
- package/lib/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/lib/api/enum/code.d.ts +0 -67
- package/lib/api/helper.d.ts +0 -32
- package/lib/api/index.d.ts +0 -12
- package/lib/api/interface.d.ts +0 -14
- package/lib/api/modules/auth/index.d.ts +0 -1
- package/lib/api/modules/auth/renzhengfuwu.d.ts +0 -50
- package/lib/api/modules/configData/heibaimingdanfuwu.d.ts +0 -36
- package/lib/api/modules/configData/index.d.ts +0 -3
- package/lib/api/modules/configData/xitongpeizhifuwu.d.ts +0 -99
- package/lib/api/modules/configData/zidianfuwu.d.ts +0 -71
- package/lib/api/modules/rbac/gangweijiekou.d.ts +0 -43
- package/lib/api/modules/rbac/index.d.ts +0 -11
- package/lib/api/modules/rbac/jiaosejiekou.d.ts +0 -50
- package/lib/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -43
- package/lib/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -64
- package/lib/api/modules/rbac/yonghujiekou.d.ts +0 -106
- package/lib/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -36
- package/lib/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -29
- package/lib/api/modules/rbac/ziyuanjiekou.d.ts +0 -85
- package/lib/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -36
- package/lib/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -29
- package/lib/api/modules/rbac/zuzhijiekou.d.ts +0 -64
- package/lib/api/request.d.ts +0 -2
- package/lib/api/system/app.d.ts +0 -17
- package/lib/api/system/user.d.ts +0 -24
- package/lib/assets/styles/index.d.ts +0 -6
- package/lib/colors-KAaBT84S.cjs +0 -1
- package/lib/components/NotAllowed/index.vue.d.ts +0 -2
- package/lib/components/PageHeader/index.vue.d.ts +0 -23
- package/lib/components/PageMain/index.vue.d.ts +0 -27
- package/lib/components/PassStrengthValidator/index.vue.d.ts +0 -26
- package/lib/components/PassStrengthValidator/rule.vue.d.ts +0 -8
- package/lib/components/PubinfoApp/index.vue.d.ts +0 -2
- package/lib/components/PubinfoIcon/index.vue.d.ts +0 -10
- package/lib/components/index.d.ts +0 -8
- package/lib/composables/index.d.ts +0 -4
- package/lib/composables/log.d.ts +0 -6
- package/lib/composables/theme.d.ts +0 -3
- package/lib/composables/watchDiff.d.ts +0 -2
- package/lib/config/index.d.ts +0 -1
- package/lib/config/settings.d.ts +0 -3
- package/lib/context.d.ts +0 -14
- package/lib/create.d.ts +0 -3
- package/lib/directives/index.d.ts +0 -4
- package/lib/directives/plugins/permission.d.ts +0 -6
- package/lib/index-38bsQrho.cjs +0 -1
- package/lib/index-BEqD62a0.cjs +0 -1
- package/lib/index-Bbm9CQRP.cjs +0 -1
- package/lib/index-BqHsuJkr.cjs +0 -1
- package/lib/index-JZl6Zh3L.cjs +0 -44
- package/lib/index-VGR0Mt4q.cjs +0 -240
- package/lib/index-WMo0GAa6.cjs +0 -1
- package/lib/index-_YsHduAE.cjs +0 -1
- package/lib/index-gr8kFwPx.cjs +0 -18
- package/lib/index-zvGq9tSu.cjs +0 -1
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.vue_vue_type_style_index_0_scoped_fa1c6ee4_lang-SCJ5qyPu.cjs +0 -1
- package/lib/layout/components/BackTop/index.vue.d.ts +0 -2
- package/lib/layout/components/Content/IframeView.vue.d.ts +0 -4
- package/lib/layout/components/Content/LinkView.vue.d.ts +0 -2
- package/lib/layout/components/Content/index.vue.d.ts +0 -2
- package/lib/layout/components/Copyright/index.vue.d.ts +0 -2
- package/lib/layout/components/Header/TopMode/More.vue.d.ts +0 -26
- package/lib/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -25
- package/lib/layout/components/Header/TopMode/index.vue.d.ts +0 -4
- package/lib/layout/components/Header/TopThinMode.vue.d.ts +0 -4
- package/lib/layout/components/Header/index.vue.d.ts +0 -19
- package/lib/layout/components/Logo/index.vue.d.ts +0 -26
- package/lib/layout/components/Menu/index.vue.d.ts +0 -10
- package/lib/layout/components/Menu/item.vue.d.ts +0 -11
- package/lib/layout/components/Menu/sub.vue.d.ts +0 -219
- package/lib/layout/components/Menu/types.d.ts +0 -42
- package/lib/layout/components/SettingBar/AppSetting.vue.d.ts +0 -12
- package/lib/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -9
- package/lib/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -2
- package/lib/layout/components/SettingBar/index.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -2
- package/lib/layout/components/Sidebar/index.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -17
- package/lib/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -25
- package/lib/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -2
- package/lib/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -2
- package/lib/layout/components/Tools/Preferences/index.vue.d.ts +0 -4
- package/lib/layout/components/Tools/Search.vue.d.ts +0 -199
- package/lib/layout/components/Tools/index.vue.d.ts +0 -233
- package/lib/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -217
- package/lib/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -14
- package/lib/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -4
- package/lib/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -2
- package/lib/layout/components/Topbar/index.vue.d.ts +0 -2
- package/lib/layout/composables/useContext.d.ts +0 -18
- package/lib/layout/composables/useGetComputedStyle.d.ts +0 -15
- package/lib/layout/composables/useHotkey.d.ts +0 -5
- package/lib/layout/composables/useMainPage.d.ts +0 -14
- package/lib/layout/composables/useMenu.d.ts +0 -8
- package/lib/layout/composables/useTabbar.d.ts +0 -14
- package/lib/layout/composables/useTitle.d.ts +0 -3
- package/lib/layout/composables/useViewTransition.d.ts +0 -3
- package/lib/layout/composables/useWatermark.d.ts +0 -4
- package/lib/layout/index.d.ts +0 -19
- package/lib/layout/provider.d.ts +0 -1
- package/lib/layout/ui-kit/HBadge.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HButton.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HCheckList.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDivider.vue.d.ts +0 -20
- package/lib/layout/ui-kit/HDropdown.vue.d.ts +0 -18
- package/lib/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -26
- package/lib/layout/ui-kit/HDropdownTree.vue.d.ts +0 -32
- package/lib/layout/ui-kit/HInput.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HKbd.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HSelect.vue.d.ts +0 -17
- package/lib/layout/ui-kit/HTabList.vue.d.ts +0 -22
- package/lib/layout/ui-kit/HToggle.vue.d.ts +0 -14
- package/lib/layout/ui-kit/HTooltip.vue.d.ts +0 -23
- package/lib/locales/index.d.ts +0 -301
- package/lib/locales/lang/en.json.d.ts +0 -99
- package/lib/locales/lang/zh-cn.json.d.ts +0 -100
- package/lib/locales/lang/zh-tw.json.d.ts +0 -100
- package/lib/locales/ui.d.ts +0 -3
- package/lib/modules.d.ts +0 -11
- package/lib/notification-IZqPm_OK.cjs +0 -199
- package/lib/pages/personal/profile/index.vue.d.ts +0 -2
- package/lib/pages/system/[...all].vue.d.ts +0 -2
- package/lib/pages/system/change-organization/index.vue.d.ts +0 -2
- package/lib/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -18
- package/lib/pages/system/change-password/index.vue.d.ts +0 -31
- package/lib/pages/system/index.vue.d.ts +0 -2
- package/lib/pages/system/not-permission/index.vue.d.ts +0 -2
- package/lib/pages/system/reload.vue.d.ts +0 -2
- package/lib/pick-y2yLda1R.cjs +0 -1
- package/lib/question-line-Cd0CU4hr.cjs +0 -1
- package/lib/reload-6L7Dzs7h.cjs +0 -1
- package/lib/request.cjs +0 -6
- package/lib/right-C5JQ_uRB.cjs +0 -1
- package/lib/route/async.d.ts +0 -9
- package/lib/route/guard/auth.d.ts +0 -3
- package/lib/route/guard/basic.d.ts +0 -3
- package/lib/route/guard/index.d.ts +0 -3
- package/lib/route/guard/setting.d.ts +0 -3
- package/lib/route/index.d.ts +0 -7
- package/lib/route/routes.d.ts +0 -3
- package/lib/stores/enum/index.d.ts +0 -20
- package/lib/stores/helper.d.ts +0 -2
- package/lib/stores/index.d.ts +0 -5
- package/lib/stores/modules/iframe.d.ts +0 -41
- package/lib/stores/modules/index.d.ts +0 -9
- package/lib/stores/modules/keepAlive.d.ts +0 -23
- package/lib/stores/modules/menu.d.ts +0 -32
- package/lib/stores/modules/notification.d.ts +0 -18
- package/lib/stores/modules/route.d.ts +0 -42
- package/lib/stores/modules/user.d.ts +0 -3
- package/lib/stores/plugin/persist.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/cleanup.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/iframeCache.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/index.d.ts +0 -5
- package/lib/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -5
- package/lib/style.css +0 -9
- package/lib/utils/cleanup.d.ts +0 -8
- package/lib/utils/crypto.d.ts +0 -4
- package/lib/utils/eventBus.d.ts +0 -5
- package/lib/utils/injectionKeys.d.ts +0 -2
- package/lib/utils/storage.d.ts +0 -21
- package/lib/utils/utils.d.ts +0 -3
- package/lib/utils/watermark.d.ts +0 -51
- package/src/assets/icons/add-child.svg +0 -1
- package/src/assets/icons/authority.svg +0 -1
- package/src/assets/icons/authorize.svg +0 -1
- package/src/assets/icons/blacklist-disable.svg +0 -1
- package/src/assets/icons/blacklist-enable.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/edit.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/icard.svg +0 -1
- package/src/assets/icons/icon_animation.svg +0 -1
- package/src/assets/icons/icon_breadcrumb.svg +0 -1
- package/src/assets/icons/icon_copyright.svg +0 -1
- package/src/assets/icons/icon_jt.svg +0 -1
- package/src/assets/icons/icon_layout.svg +0 -1
- package/src/assets/icons/icon_mainpage.svg +0 -1
- package/src/assets/icons/icon_menu.svg +0 -1
- package/src/assets/icons/icon_page_size.svg +0 -1
- package/src/assets/icons/icon_position_type.svg +0 -1
- package/src/assets/icons/icon_safe_manage.svg +0 -1
- package/src/assets/icons/icon_screen_scale.svg +0 -6
- package/src/assets/icons/icon_system_manage.svg +0 -1
- package/src/assets/icons/icon_tabbar.svg +0 -1
- package/src/assets/icons/icon_toolbar.svg +0 -1
- package/src/assets/icons/icon_topbar.svg +0 -1
- package/src/assets/icons/icon_watermark.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/log-center.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/not-data.svg +0 -1
- package/src/assets/icons/org-main.svg +0 -1
- package/src/assets/icons/org-unmain.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/remove.svg +0 -1
- package/src/assets/icons/resource-app.svg +0 -1
- package/src/assets/icons/resource-btn.svg +0 -1
- package/src/assets/icons/resource-index.svg +0 -1
- package/src/assets/icons/resource-menu.svg +0 -1
- package/src/assets/icons/resource-nonmenu.svg +0 -1
- package/src/assets/icons/setting-manage.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/theme-check-mark.svg +0 -1
- package/src/assets/icons/theme-title.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/view.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
- package/src/assets/icons/zddata.svg +0 -1
- package/src/assets/icons/zy_checked.svg +0 -1
- package/src/assets/icons/zy_default.svg +0 -1
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/layout/components/Tools/I18nSelector.vue +0 -52
- package/src/layout/components/Tools/Notification.vue +0 -152
- package/src/pages/personal/notification.vue +0 -58
- package/src/pages/system/change-password/page.vue +0 -58
- package/src/pages/system/index.vue +0 -5
- package/src/route/async.ts +0 -18
- package/src/stores/modules/notification.ts +0 -34
- package/{es → dist}/HButton.vue_vue_type_script_setup_true_lang-CYAzn9Mg.js +0 -0
- package/{es → dist}/HDivider-DgXBhPr0.js +0 -0
- package/{es → dist}/HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js +0 -0
- package/{es → dist}/HToggle-Cd71WKvG.js +0 -0
- package/{es → dist}/_plugin-vue_export-helper-CHgC5LLL.js +0 -0
- package/{es → dist}/api/enum/code.d.ts +0 -0
- package/{es → dist}/api/helper.d.ts +0 -0
- package/{es → dist}/api/interface.d.ts +0 -0
- package/{es → dist}/api/modules/auth/index.d.ts +0 -0
- package/{es → dist}/api/modules/auth/renzhengfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/heibaimingdanfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/index.d.ts +0 -0
- package/{es → dist}/api/modules/configData/xitongpeizhifuwu.d.ts +0 -0
- package/{es → dist}/api/modules/configData/zidianfuwu.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/gangweijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/index.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/jiaosejiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghujiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/ziyuanjiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuhuguanlijiekou.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +0 -0
- package/{es → dist}/api/modules/rbac/zuzhijiekou.d.ts +0 -0
- package/{es → dist}/api/request.d.ts +0 -0
- package/{es → dist}/api/system/app.d.ts +0 -0
- package/{es → dist}/api/system/user.d.ts +0 -0
- package/{es → dist}/assets/styles/index.d.ts +0 -0
- package/{es → dist}/components/NotAllowed/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageHeader/index.vue.d.ts +0 -0
- package/{es → dist}/components/PageMain/index.vue.d.ts +0 -0
- package/{es → dist}/components/PassStrengthValidator/index.vue.d.ts +2 -2
- package/{es → dist}/components/PassStrengthValidator/rule.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoApp/index.vue.d.ts +0 -0
- package/{es → dist}/components/PubinfoIcon/index.vue.d.ts +0 -0
- package/{es → dist}/components/index.d.ts +0 -0
- package/{es → dist}/composables/index.d.ts +0 -0
- package/{es → dist}/composables/log.d.ts +0 -0
- package/{es → dist}/composables/theme.d.ts +0 -0
- package/{es → dist}/composables/watchDiff.d.ts +0 -0
- package/{es → dist}/config/index.d.ts +0 -0
- package/{es → dist}/config/settings.d.ts +0 -0
- package/{es → dist}/create.d.ts +0 -0
- package/{es → dist}/directives/index.d.ts +0 -0
- package/{es → dist}/directives/plugins/permission.d.ts +0 -0
- package/{es → dist}/layout/components/BackTop/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/IframeView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/LinkView.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Content/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Copyright/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/More.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/NotCursor.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopMode/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/TopThinMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Header/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Logo/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/sub.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Menu/types.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/AppSetting.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/DayNightToggle.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingBreadcrumb.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingCopyright.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingEnableTransition.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingHome.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMenu.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingNavSearch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingOther.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingPage.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTabbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingThemes.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingToolbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingTopbar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/components/SettingWidthMode.vue.d.ts +0 -0
- package/{es → dist}/layout/components/SettingBar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/MainSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/SubSidebar.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Sidebar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Breadcrumb/item.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/DayNightSwitch.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/HotkeysIntro.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/PreferencesContent.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Preferences/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/Search.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Tools/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Tabbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Favorites.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/Star.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/Toolbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/components/Topbar/index.vue.d.ts +0 -0
- package/{es → dist}/layout/composables/useGetComputedStyle.d.ts +0 -0
- package/{es → dist}/layout/composables/useHotkey.d.ts +0 -0
- package/{es → dist}/layout/composables/useMainPage.d.ts +0 -0
- package/{es → dist}/layout/composables/useMenu.d.ts +0 -0
- package/{es → dist}/layout/composables/useTabbar.d.ts +0 -0
- package/{es → dist}/layout/composables/useTitle.d.ts +0 -0
- package/{es → dist}/layout/composables/useViewTransition.d.ts +0 -0
- package/{es → dist}/layout/composables/useWatermark.d.ts +0 -0
- package/{es → dist}/layout/index.d.ts +0 -0
- package/{es → dist}/layout/provider.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HBadge.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HButton.vue.d.ts +0 -0
- package/{es → dist}/layout/ui-kit/HCheckList.vue.d.ts +2 -2
- /package/{es → dist}/layout/ui-kit/HDivider.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdown.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownMenu.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HDropdownTree.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HInput.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HKbd.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HSelect.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HToggle.vue.d.ts +0 -0
- /package/{es → dist}/layout/ui-kit/HTooltip.vue.d.ts +0 -0
- /package/{es → dist}/locales/index.d.ts +0 -0
- /package/{es → dist}/locales/lang/en.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-cn.json.d.ts +0 -0
- /package/{es → dist}/locales/lang/zh-tw.json.d.ts +0 -0
- /package/{es → dist}/locales/ui.d.ts +0 -0
- /package/{es → dist}/modules.d.ts +0 -0
- /package/{es → dist}/pages/personal/profile/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/[...all].vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-organization/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/components/ChangePasswordForm/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/change-password/index.vue.d.ts +0 -0
- /package/{es/pages/system → dist/pages/system/not-permission}/index.vue.d.ts +0 -0
- /package/{es → dist}/pages/system/reload.vue.d.ts +0 -0
- /package/{es → dist}/question-line-CfkciTFq.js +0 -0
- /package/{es → dist}/reload-CUcPYtl7.js +0 -0
- /package/{es → dist}/right-Bfe2p1o0.js +0 -0
- /package/{es → dist}/route/guard/auth.d.ts +0 -0
- /package/{es → dist}/route/guard/basic.d.ts +0 -0
- /package/{es → dist}/route/guard/index.d.ts +0 -0
- /package/{es → dist}/route/guard/setting.d.ts +0 -0
- /package/{es → dist}/stores/enum/index.d.ts +0 -0
- /package/{es → dist}/stores/helper.d.ts +0 -0
- /package/{es → dist}/stores/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/persist.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/cleanup.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/favoritesStorage.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/iframeCache.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/index.d.ts +0 -0
- /package/{es → dist}/stores/plugin/sideEffect/tabbarStorage.d.ts +0 -0
- /package/{es → dist}/utils/cleanup.d.ts +0 -0
- /package/{es → dist}/utils/crypto.d.ts +0 -0
- /package/{es → dist}/utils/eventBus.d.ts +0 -0
- /package/{es → dist}/utils/injectionKeys.d.ts +0 -0
- /package/{es → dist}/utils/storage.d.ts +0 -0
- /package/{es → dist}/utils/utils.d.ts +0 -0
- /package/{es → dist}/utils/watermark.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { colorScheme, cssVarKey } from '@pubinfo/config/themes';
|
|
3
3
|
import { useTheme } from '@/composables';
|
|
4
|
-
import {
|
|
4
|
+
import { getThemes } from '@pubinfo/config/themes';
|
|
5
5
|
import JamBookmarkF from '~icons/jam/bookmark-f';
|
|
6
6
|
import PajamasCheckCircleFilled from '~icons/pajamas/check-circle-filled';
|
|
7
7
|
import { useContext } from '../../../composables/useContext';
|
|
@@ -30,8 +30,10 @@ const benchmark: cssVarKey[] = [
|
|
|
30
30
|
'--g-sub-sidebar-bg',
|
|
31
31
|
];
|
|
32
32
|
|
|
33
|
-
const themeList = computed<ThemeListCard[]>(() =>
|
|
34
|
-
|
|
33
|
+
const themeList = computed<ThemeListCard[]>(() => {
|
|
34
|
+
const themes = getThemes();
|
|
35
|
+
|
|
36
|
+
return Object.keys(themes).map((key) => {
|
|
35
37
|
const value = themes[key];
|
|
36
38
|
const colors = benchmark.map((cssVar) => {
|
|
37
39
|
const cssValue = value[cssVar].startsWith('#')
|
|
@@ -48,8 +50,8 @@ const themeList = computed<ThemeListCard[]>(() =>
|
|
|
48
50
|
};
|
|
49
51
|
}).filter(cssVarScheme =>
|
|
50
52
|
cssVarScheme.value['color-scheme'] === app.value.colorScheme,
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
+
);
|
|
54
|
+
});
|
|
53
55
|
|
|
54
56
|
function clickHandle(item: ThemeListCard) {
|
|
55
57
|
const label = item.label;
|
|
@@ -37,6 +37,8 @@ const [open, setOpen] = useToggle(false);
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<style lang="scss" scoped>
|
|
40
|
+
@use "sass:color";
|
|
41
|
+
|
|
40
42
|
.app-setting-warp {
|
|
41
43
|
position: relative;
|
|
42
44
|
position: fixed;
|
|
@@ -92,7 +94,7 @@ const [open, setOpen] = useToggle(false);
|
|
|
92
94
|
.divider {
|
|
93
95
|
width: 10px;
|
|
94
96
|
height: 1px;
|
|
95
|
-
background-color:
|
|
97
|
+
background-color: color.scale($color: #fff, $lightness: -30%)
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.icon {
|
|
@@ -15,14 +15,11 @@ const { settingsStore, menuStore, generateI18nTitle } = useContext();
|
|
|
15
15
|
const { switchTo } = useMenu();
|
|
16
16
|
|
|
17
17
|
function iconName(isActive: boolean, icon?: string, activeIcon?: string) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
name = icon;
|
|
18
|
+
if (isActive && activeIcon) {
|
|
19
|
+
return activeIcon;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return name;
|
|
21
|
+
|
|
22
|
+
return icon;
|
|
26
23
|
}
|
|
27
24
|
</script>
|
|
28
25
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { getThemes } from '@pubinfo/config/themes';
|
|
3
3
|
import { message } from 'ant-design-vue';
|
|
4
4
|
import { cloneDeep, pick } from 'lodash-es';
|
|
5
5
|
import EpBack from '~icons/ep/back';
|
|
@@ -92,6 +92,7 @@ const isDark = computed({
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
const themeList = computed(() => {
|
|
95
|
+
const themes = getThemes();
|
|
95
96
|
return Object.keys(themes).map((key) => {
|
|
96
97
|
return {
|
|
97
98
|
label: key,
|
|
@@ -2,22 +2,18 @@
|
|
|
2
2
|
import { useFullscreen } from '@vueuse/core';
|
|
3
3
|
import { useI18n } from 'vue-i18n';
|
|
4
4
|
import CarbonUserAvatarFilledAlt from '~icons/carbon/user-avatar-filled-alt';
|
|
5
|
-
// import FluentAlert12Regular from '~icons/fluent/alert-12-regular';
|
|
6
5
|
import FluentArrowSync16Filled from '~icons/fluent/arrow-sync-16-filled';
|
|
7
6
|
import FluentFullScreenMaximize16Filled from '~icons/fluent/full-screen-maximize-16-filled';
|
|
8
7
|
import FluentFullScreenMinimize16Filled from '~icons/fluent/full-screen-minimize-16-filled';
|
|
9
8
|
import IconamoonSearch from '~icons/iconamoon/search';
|
|
10
9
|
import MaterialSymbolsExpandMoreRounded from '~icons/material-symbols/expand-more-rounded';
|
|
11
10
|
import PhLineVerticalThin from '~icons/ph/line-vertical-thin';
|
|
12
|
-
// import RiTranslate from '~icons/ri/translate';
|
|
13
11
|
|
|
14
12
|
import { useContext } from '../../composables/useContext';
|
|
15
13
|
import useMainPage from '../../composables/useMainPage';
|
|
16
14
|
import useViewTransition from '../../composables/useViewTransition';
|
|
17
15
|
import DayNightSwitch from './DayNightSwitch.vue';
|
|
18
16
|
import HotkeysIntro from './HotkeysIntro.vue';
|
|
19
|
-
// import I18nSelector from './I18nSelector.vue';
|
|
20
|
-
// import Notification from './Notification.vue';
|
|
21
17
|
import Preferences from './Preferences/index.vue';
|
|
22
18
|
import Search from './Search.vue';
|
|
23
19
|
|
|
@@ -26,9 +22,7 @@ defineOptions({
|
|
|
26
22
|
});
|
|
27
23
|
|
|
28
24
|
const router = useRouter();
|
|
29
|
-
const { settingsStore, userStore,
|
|
30
|
-
|
|
31
|
-
notificationStore.init();
|
|
25
|
+
const { settingsStore, userStore, generateI18nTitle } = useContext();
|
|
32
26
|
|
|
33
27
|
const { t } = useI18n();
|
|
34
28
|
|
|
@@ -43,6 +37,7 @@ const userMenu = computed(() => [
|
|
|
43
37
|
[
|
|
44
38
|
{
|
|
45
39
|
label: generateI18nTitle('route.home', settingsStore.settings.home.title),
|
|
40
|
+
icon: 'i-ant-design:home-twotone',
|
|
46
41
|
handle: () => router.push({ name: 'Home' }),
|
|
47
42
|
hide: !settingsStore.settings.home.enable,
|
|
48
43
|
},
|
|
@@ -67,16 +62,14 @@ const userMenu = computed(() => [
|
|
|
67
62
|
icon: 'i-iconamoon-synchronize-duotone',
|
|
68
63
|
handle: () => router.push({
|
|
69
64
|
name: 'ChangeOrganization',
|
|
70
|
-
params: { orgId: userStore.orgId },
|
|
65
|
+
params: { orgId: userStore.user.orgId },
|
|
71
66
|
}),
|
|
72
|
-
hide: userStore.orgList.length <= 1,
|
|
67
|
+
hide: userStore.user.orgList.length <= 1,
|
|
73
68
|
},
|
|
74
69
|
{
|
|
75
70
|
label: t('route.personal.profile'),
|
|
76
71
|
icon: 'i-iconamoon-profile-duotone',
|
|
77
|
-
handle: () => router.push({
|
|
78
|
-
name: 'Profile',
|
|
79
|
-
}),
|
|
72
|
+
handle: () => router.push({ name: 'Profile' }),
|
|
80
73
|
},
|
|
81
74
|
{
|
|
82
75
|
label: t('app.changePassword'),
|
|
@@ -133,7 +126,7 @@ function toggleColorScheme(event: MouseEvent) {
|
|
|
133
126
|
|
|
134
127
|
const avatarError = ref(false);
|
|
135
128
|
|
|
136
|
-
watch(() => userStore.avatar, () => {
|
|
129
|
+
watch(() => userStore.user.avatar, () => {
|
|
137
130
|
if (avatarError.value) {
|
|
138
131
|
avatarError.value = false;
|
|
139
132
|
}
|
|
@@ -175,22 +168,6 @@ const searchComponentsClass = computed(() => {
|
|
|
175
168
|
>
|
|
176
169
|
<IconamoonSearch text="14px" />
|
|
177
170
|
</span>
|
|
178
|
-
<!-- <HDropdown
|
|
179
|
-
v-if="settingsStore.settings.toolbar.enableNotification"
|
|
180
|
-
class="item"
|
|
181
|
-
>
|
|
182
|
-
<HBadge
|
|
183
|
-
:value="notificationStore.total"
|
|
184
|
-
>
|
|
185
|
-
<FluentAlert12Regular text="15px" />
|
|
186
|
-
</HBadge>
|
|
187
|
-
<template #dropdown>
|
|
188
|
-
<Notification />
|
|
189
|
-
</template>
|
|
190
|
-
</HDropdown>
|
|
191
|
-
<I18nSelector class="item">
|
|
192
|
-
<RiTranslate text="15px" />
|
|
193
|
-
</I18nSelector> -->
|
|
194
171
|
<span
|
|
195
172
|
v-if="settingsStore.mode === 'pc' && settingsStore.settings.toolbar.enableFullscreen"
|
|
196
173
|
class="item"
|
|
@@ -210,8 +187,8 @@ const searchComponentsClass = computed(() => {
|
|
|
210
187
|
</div>
|
|
211
188
|
<div flex-center cursor-pointer gap-1>
|
|
212
189
|
<img
|
|
213
|
-
v-if="userStore.avatar && !avatarError"
|
|
214
|
-
:src="userStore.avatar"
|
|
190
|
+
v-if="userStore.user.avatar && !avatarError"
|
|
191
|
+
:src="userStore.user.avatar"
|
|
215
192
|
:onerror="() => (avatarError = true)"
|
|
216
193
|
class="h-[24px] w-[24px] rounded-full"
|
|
217
194
|
>
|
|
@@ -222,7 +199,7 @@ const searchComponentsClass = computed(() => {
|
|
|
222
199
|
<PhLineVerticalThin />
|
|
223
200
|
<HDropdownMenu :items="userMenu">
|
|
224
201
|
<div flex-center cursor-pointer gap-1>
|
|
225
|
-
{{ userStore.account }}
|
|
202
|
+
{{ userStore.user.account }}
|
|
226
203
|
<MaterialSymbolsExpandMoreRounded ml="5px" mr="10px" />
|
|
227
204
|
</div>
|
|
228
205
|
</HDropdownMenu>
|
|
@@ -3,7 +3,6 @@ import type {
|
|
|
3
3
|
useIframeStore,
|
|
4
4
|
useKeepAliveStore,
|
|
5
5
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
6
|
useRouteStore,
|
|
8
7
|
useSettingsStore,
|
|
9
8
|
useTabbarStore,
|
|
@@ -16,7 +15,6 @@ interface LayoutContext {
|
|
|
16
15
|
keepAliveStore: ReturnType<typeof useKeepAliveStore>
|
|
17
16
|
iframeStore: ReturnType<typeof useIframeStore>
|
|
18
17
|
userStore: ReturnType<typeof useUserStore>
|
|
19
|
-
notificationStore: ReturnType<typeof useNotificationStore>
|
|
20
18
|
menuStore: ReturnType<typeof useMenuStore>
|
|
21
19
|
routeStore: ReturnType<typeof useRouteStore>
|
|
22
20
|
tabbarStore: ReturnType<typeof useTabbarStore>
|
|
@@ -27,11 +27,11 @@ export default function useWatermark() {
|
|
|
27
27
|
const type = settingsStore.settings.watermark.text;
|
|
28
28
|
switch (type) {
|
|
29
29
|
case 'U':
|
|
30
|
-
return `${userStore.account}`;
|
|
30
|
+
return `${userStore.user.account}`;
|
|
31
31
|
case 'O':
|
|
32
32
|
return `${userStore.userOrgName}`;
|
|
33
33
|
case 'OU':
|
|
34
|
-
return `${userStore.userOrgName} ${userStore.account}`;
|
|
34
|
+
return `${userStore.userOrgName} ${userStore.user.account}`;
|
|
35
35
|
default:
|
|
36
36
|
return type;
|
|
37
37
|
}
|
package/src/layout/provider.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { PubinfoProvider } from '@/components';
|
|
1
2
|
import {
|
|
2
3
|
useFavoritesStore,
|
|
3
4
|
useIframeStore,
|
|
4
5
|
useKeepAliveStore,
|
|
5
6
|
useMenuStore,
|
|
6
|
-
useNotificationStore,
|
|
7
7
|
useRouteStore,
|
|
8
8
|
useSettingsStore,
|
|
9
9
|
useTabbarStore,
|
|
10
10
|
useUserStore,
|
|
11
11
|
} from '@/stores';
|
|
12
|
+
import { h } from 'vue';
|
|
12
13
|
import { createContext } from './composables/useContext';
|
|
13
14
|
import { useTitle } from './composables/useTitle';
|
|
14
15
|
|
|
@@ -33,7 +34,6 @@ export const Provider = defineComponent({
|
|
|
33
34
|
const keepAliveStore = useKeepAliveStore();
|
|
34
35
|
const iframeStore = useIframeStore();
|
|
35
36
|
const userStore = useUserStore();
|
|
36
|
-
const notificationStore = useNotificationStore();
|
|
37
37
|
const routeStore = useRouteStore();
|
|
38
38
|
const tabbarStore = useTabbarStore();
|
|
39
39
|
const favoritesStore = useFavoritesStore();
|
|
@@ -46,7 +46,6 @@ export const Provider = defineComponent({
|
|
|
46
46
|
keepAliveStore,
|
|
47
47
|
iframeStore,
|
|
48
48
|
userStore,
|
|
49
|
-
notificationStore,
|
|
50
49
|
routeStore,
|
|
51
50
|
tabbarStore,
|
|
52
51
|
favoritesStore,
|
|
@@ -56,6 +55,10 @@ export const Provider = defineComponent({
|
|
|
56
55
|
generateI18nTitle,
|
|
57
56
|
});
|
|
58
57
|
|
|
59
|
-
return () =>
|
|
58
|
+
return () => h(
|
|
59
|
+
PubinfoProvider,
|
|
60
|
+
{},
|
|
61
|
+
() => slots?.default?.(),
|
|
62
|
+
);
|
|
60
63
|
},
|
|
61
64
|
});
|
|
@@ -11,7 +11,7 @@ const userStore = useUserStore();
|
|
|
11
11
|
const router = useRouter();
|
|
12
12
|
|
|
13
13
|
// 切断响应式,否则组织清楚后会导致页面闪烁
|
|
14
|
-
const rawOrganization = toRaw(userStore.orgList);
|
|
14
|
+
const rawOrganization = toRaw(userStore.user.orgList);
|
|
15
15
|
const orgList = computed(() => {
|
|
16
16
|
const org = rawOrganization.map((item) => {
|
|
17
17
|
return {
|
|
@@ -37,7 +37,7 @@ async function changeOrganization() {
|
|
|
37
37
|
const org = orgList.value[activeIndex.value];
|
|
38
38
|
const orgId = org?.orgId;
|
|
39
39
|
if (orgId) {
|
|
40
|
-
if (orgId === userStore.orgId) {
|
|
40
|
+
if (orgId === userStore.user.orgId) {
|
|
41
41
|
message.error('请避免切换到当前已选组织');
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
@@ -83,7 +83,7 @@ async function changeOrganization() {
|
|
|
83
83
|
<span mr-10px>
|
|
84
84
|
{{ item.label }}
|
|
85
85
|
</span>
|
|
86
|
-
<a-tag v-if="userStore.orgId === item.orgId" color="blue">
|
|
86
|
+
<a-tag v-if="userStore.user.orgId === item.orgId" color="blue">
|
|
87
87
|
当前使用组织
|
|
88
88
|
</a-tag>
|
|
89
89
|
<a-tag v-if="item.main" color="red">
|
package/src/route/index.ts
CHANGED
package/src/route/routes.ts
CHANGED
|
@@ -1,9 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Route } from '#/vue-router';
|
|
2
2
|
import type { RouteRecordRaw } from 'vue-router';
|
|
3
3
|
import { readProject } from '@/context';
|
|
4
4
|
import { useSettingsStore, useUserStore } from '@/stores';
|
|
5
5
|
import { isUndefined } from 'lodash-es';
|
|
6
6
|
|
|
7
|
+
interface AsyncRoutesOptions {
|
|
8
|
+
/** 路由排序 */
|
|
9
|
+
sort?: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface RawAsyncRoute extends Required<AsyncRoutesOptions> {
|
|
13
|
+
routes: Route.recordMainRaw[]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// #region --- 动态路由
|
|
17
|
+
const rawAsyncRoutes: RawAsyncRoute[] = [];
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 定义并注册动态路由
|
|
21
|
+
*/
|
|
22
|
+
export function defineAsyncRoutes(routes: Route.recordMainRaw[], options?: AsyncRoutesOptions) {
|
|
23
|
+
rawAsyncRoutes.push({
|
|
24
|
+
routes,
|
|
25
|
+
sort: options?.sort ?? 0,
|
|
26
|
+
});
|
|
27
|
+
return routes;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 读取注册的动态路由
|
|
32
|
+
*/
|
|
33
|
+
export function getAsyncRoutes() {
|
|
34
|
+
return rawAsyncRoutes
|
|
35
|
+
.sort((a, b) => a?.sort - b?.sort)
|
|
36
|
+
.map(e => e.routes)
|
|
37
|
+
.flat();
|
|
38
|
+
}
|
|
39
|
+
// #endregion
|
|
40
|
+
|
|
41
|
+
// #region --- 系统路由
|
|
42
|
+
const systemRoutes: RouteRecordRaw[] = [
|
|
43
|
+
{
|
|
44
|
+
path: '/',
|
|
45
|
+
component: readProject().layout,
|
|
46
|
+
meta: {
|
|
47
|
+
title: () => useSettingsStore().settings.home.title,
|
|
48
|
+
breadcrumb: false,
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
{
|
|
52
|
+
path: 'reload',
|
|
53
|
+
name: 'Reload',
|
|
54
|
+
component: () => import('@/pages/system/reload.vue'),
|
|
55
|
+
meta: {
|
|
56
|
+
title: '重新加载',
|
|
57
|
+
breadcrumb: false,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: 'personal/profile',
|
|
62
|
+
name: 'Profile',
|
|
63
|
+
component: () => import('@/pages/personal/profile/index.vue'),
|
|
64
|
+
meta: {
|
|
65
|
+
title: '个人中心',
|
|
66
|
+
i18n: 'route.personal.profile',
|
|
67
|
+
icon: 'i-iconamoon-profile-duotone',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 定义并注册系统路由(含Layout)
|
|
76
|
+
*/
|
|
77
|
+
export function defineSystemRoutes(routes: RouteRecordRaw[]) {
|
|
78
|
+
systemRoutes[0].children?.push(...routes);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 读取注册的系统路由
|
|
83
|
+
*/
|
|
84
|
+
export function getSystemRoutes() {
|
|
85
|
+
return systemRoutes;
|
|
86
|
+
}
|
|
87
|
+
// #endregion
|
|
88
|
+
|
|
89
|
+
// #region --- 静态路由
|
|
7
90
|
export const constantRoutes: RouteRecordRaw[] = [
|
|
8
91
|
{
|
|
9
92
|
path: '/change-password/:changePassWordToken',
|
|
@@ -27,8 +110,8 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|
|
27
110
|
name: 'ChangeOrganization',
|
|
28
111
|
component: () => import('@/pages/system/change-organization/index.vue'),
|
|
29
112
|
beforeEnter: (to) => {
|
|
30
|
-
const
|
|
31
|
-
if (isUndefined(to.params.orgId) || to.params.orgId !== user.orgId) {
|
|
113
|
+
const userStore = useUserStore();
|
|
114
|
+
if (isUndefined(to.params.orgId) || to.params.orgId !== userStore.user.orgId) {
|
|
32
115
|
return { name: 'Login' };
|
|
33
116
|
}
|
|
34
117
|
return true;
|
|
@@ -56,55 +139,4 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|
|
56
139
|
},
|
|
57
140
|
},
|
|
58
141
|
];
|
|
59
|
-
|
|
60
|
-
export const systemRoutes: RouteRecordRaw[] = [
|
|
61
|
-
{
|
|
62
|
-
path: '/',
|
|
63
|
-
component: readProject().layout,
|
|
64
|
-
meta: {
|
|
65
|
-
title: () => useSettingsStore().settings.home.title,
|
|
66
|
-
breadcrumb: false,
|
|
67
|
-
},
|
|
68
|
-
children: [
|
|
69
|
-
{
|
|
70
|
-
path: '',
|
|
71
|
-
name: 'Home',
|
|
72
|
-
component: () => import('@/pages/system/index.vue'),
|
|
73
|
-
meta: {
|
|
74
|
-
title: () => useSettingsStore().settings.home.title,
|
|
75
|
-
i18n: 'route.home',
|
|
76
|
-
icon: 'i-ant-design:home-twotone',
|
|
77
|
-
breadcrumb: false,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
path: 'reload',
|
|
82
|
-
name: 'Reload',
|
|
83
|
-
component: () => import('@/pages/system/reload.vue'),
|
|
84
|
-
meta: {
|
|
85
|
-
title: '重新加载',
|
|
86
|
-
breadcrumb: false,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
path: 'personal/profile',
|
|
91
|
-
name: 'Profile',
|
|
92
|
-
component: () => import('@/pages/personal/profile/index.vue'),
|
|
93
|
-
meta: {
|
|
94
|
-
title: '个人中心',
|
|
95
|
-
i18n: 'route.personal.profile',
|
|
96
|
-
icon: 'i-iconamoon-profile-duotone',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
// {
|
|
100
|
-
// path: 'personal/notification',
|
|
101
|
-
// name: 'Notification',
|
|
102
|
-
// component: () => import('@/pages/personal/notification.vue'),
|
|
103
|
-
// meta: {
|
|
104
|
-
// title: '通知中心',
|
|
105
|
-
// i18n: 'route.personal.notification',
|
|
106
|
-
// },
|
|
107
|
-
// },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
];
|
|
142
|
+
// #endregion
|
package/src/stores/helper.ts
CHANGED
|
@@ -13,8 +13,8 @@ export function getfavoritesMemoryKey() {
|
|
|
13
13
|
|
|
14
14
|
function getUserPrefix() {
|
|
15
15
|
const userStore = useUserStore();
|
|
16
|
-
const userId = userStore.userId;
|
|
17
|
-
const orgId = userStore.orgId;
|
|
16
|
+
const userId = userStore.user.userId;
|
|
17
|
+
const orgId = userStore.user.orgId;
|
|
18
18
|
return getHash(`${orgId}${userId}`);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
export { default as useFavoritesStore } from './favorites';
|
|
2
|
+
export * from './favorites';
|
|
2
3
|
export { default as useIframeStore } from './iframe';
|
|
4
|
+
export * from './iframe';
|
|
3
5
|
export { default as useKeepAliveStore } from './keepAlive';
|
|
6
|
+
export * from './keepAlive';
|
|
4
7
|
export { default as useMenuStore } from './menu';
|
|
5
|
-
export
|
|
8
|
+
export * from './menu';
|
|
6
9
|
export { default as useRouteStore } from './route';
|
|
10
|
+
export * from './route';
|
|
7
11
|
export { default as useSettingsStore } from './settings';
|
|
12
|
+
export * from './settings';
|
|
8
13
|
export { default as useTabbarStore } from './tabbar';
|
|
14
|
+
export * from './tabbar';
|
|
9
15
|
export { default as useUserStore } from './user';
|
|
16
|
+
export * from './user';
|
|
@@ -185,13 +185,36 @@ const useMenuStore = defineStore(
|
|
|
185
185
|
}
|
|
186
186
|
else {
|
|
187
187
|
// 如果是 string 类型,则认为是路由,需要查找对应的主导航索引
|
|
188
|
-
const findIndex = allMenus.value
|
|
188
|
+
const findIndex = findRootIndexByPath(allMenus.value, data);
|
|
189
189
|
if (findIndex >= 0) {
|
|
190
190
|
actived.value = findIndex;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
/**
|
|
196
|
+
* 根据路径查找主导航索引
|
|
197
|
+
*/
|
|
198
|
+
function findRootIndexByPath(routes: Menu.recordRaw[], targetPath: string) {
|
|
199
|
+
function containsPath(route: Menu.recordRaw): boolean {
|
|
200
|
+
if (route.path === targetPath) {
|
|
201
|
+
return true;
|
|
202
|
+
}
|
|
203
|
+
if (route.children) {
|
|
204
|
+
return route.children.some(child => containsPath(child));
|
|
205
|
+
}
|
|
206
|
+
return false;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
for (let i = 0; i < routes.length; i++) {
|
|
210
|
+
if (containsPath(routes[i])) {
|
|
211
|
+
return i;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
195
218
|
return {
|
|
196
219
|
menus,
|
|
197
220
|
actived,
|
|
@@ -205,3 +228,4 @@ const useMenuStore = defineStore(
|
|
|
205
228
|
);
|
|
206
229
|
|
|
207
230
|
export default useMenuStore;
|
|
231
|
+
export type MenuStore = ReturnType<typeof useMenuStore>;
|
|
@@ -3,8 +3,7 @@ import type { RouteMeta, RouteRecordRaw } from 'vue-router';
|
|
|
3
3
|
|
|
4
4
|
import { GetApiRouteList } from '@/api/system/app';
|
|
5
5
|
import { readProject } from '@/context';
|
|
6
|
-
import { getAsyncRoutes } from '@/route';
|
|
7
|
-
import { systemRoutes } from '@/route/routes';
|
|
6
|
+
import { getAsyncRoutes, getSystemRoutes } from '@/route';
|
|
8
7
|
import { resolveRoutePath } from '@/utils';
|
|
9
8
|
import { cloneDeep, defaultTo, get, has, isArray, isString, isUndefined, merge, omit } from 'lodash-es';
|
|
10
9
|
import { defineStore } from 'pinia';
|
|
@@ -190,6 +189,7 @@ const useRouteStore = defineStore(
|
|
|
190
189
|
* @returns {Array<RouteRecordRaw>} 扁平化的系统路由。
|
|
191
190
|
*/
|
|
192
191
|
const flatSystemRoutes = computed(() => {
|
|
192
|
+
const systemRoutes = getSystemRoutes();
|
|
193
193
|
const routes = [...systemRoutes];
|
|
194
194
|
routes.forEach(item => flattenSystemRoutes(item));
|
|
195
195
|
return routes;
|
|
@@ -266,7 +266,7 @@ const useRouteStore = defineStore(
|
|
|
266
266
|
let returnRoutes: Route.recordMainRaw[];
|
|
267
267
|
// 如果权限功能开启,则需要对路由数据进行筛选过滤
|
|
268
268
|
if (settingsStore.settings.app.enablePermission) {
|
|
269
|
-
returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.permissions);
|
|
269
|
+
returnRoutes = filterAsyncRoutes(routesRaw.value, userStore.user.permissions);
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
272
272
|
returnRoutes = cloneDeep(routesRaw.value);
|
|
@@ -303,8 +303,16 @@ const useRouteStore = defineStore(
|
|
|
303
303
|
delete arr[index].meta!.singleMenu;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
if (!
|
|
307
|
-
|
|
306
|
+
if (!item.component) {
|
|
307
|
+
item.component = Layout;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// 给一级路由设置 provider
|
|
311
|
+
if (route.meta?.provider) {
|
|
312
|
+
(item.meta as any) = {
|
|
313
|
+
...(item.meta ?? {}),
|
|
314
|
+
provider: route.meta.provider,
|
|
315
|
+
};
|
|
308
316
|
}
|
|
309
317
|
});
|
|
310
318
|
}
|
|
@@ -433,3 +441,4 @@ const useRouteStore = defineStore(
|
|
|
433
441
|
);
|
|
434
442
|
|
|
435
443
|
export default useRouteStore;
|
|
444
|
+
export type RouteStore = ReturnType<typeof useRouteStore>;
|