From c9ad9cfc5b434833f3ba25dc83b30776a4461945 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Sun, 19 Mar 2023 16:19:12 +0800 Subject: [PATCH] fix: warn --- src/components/Application/src/AppLogo.vue | 16 ++++------------ .../Form/src/components/RadioButtonGroup.vue | 1 - .../Menu/src/components/BasicMenuItem.vue | 4 +--- src/hooks/web/useECharts.ts | 1 + src/hooks/web/useLockPage.ts | 4 ++-- src/hooks/web/useMessage.tsx | 2 +- src/hooks/web/usePermission.ts | 3 +-- .../default/header/components/lock/LockModal.vue | 6 +++--- src/layouts/default/menu/index.vue | 1 - src/store/modules/permission.ts | 1 - src/store/modules/user.ts | 1 - src/utils/http/axios/index.ts | 2 +- 12 files changed, 14 insertions(+), 28 deletions(-) diff --git a/src/components/Application/src/AppLogo.vue b/src/components/Application/src/AppLogo.vue index 5728c038..91dd329a 100644 --- a/src/components/Application/src/AppLogo.vue +++ b/src/components/Application/src/AppLogo.vue @@ -13,26 +13,18 @@ import { useGo } from '@/hooks/web/usePage' import { useMenuSetting } from '@/hooks/setting/useMenuSetting' import { useDesign } from '@/hooks/web/useDesign' import { PageEnum } from '@/enums/pageEnum' -import { useUserStore } from '@/store/modules/user' const props = defineProps({ - /** - * The theme of the current parent component - */ + // 当前父组件的主题 theme: { type: String, validator: (v: string) => ['light', 'dark'].includes(v) }, - /** - * Whether to show title - */ + // 是否显示标题 showTitle: { type: Boolean, default: true }, - /** - * The title is also displayed when the menu is collapsed - */ + // 折叠菜单时也会显示标题 alwaysShowTitle: { type: Boolean } }) const { prefixCls } = useDesign('app-logo') const { getCollapsedShowTitle } = useMenuSetting() -const userStore = useUserStore() const { title } = useGlobSetting() const go = useGo() @@ -46,7 +38,7 @@ const getTitleClass = computed(() => [ ]) function goHome() { - go(userStore.getUserInfo.homePath || PageEnum.BASE_HOME) + go(PageEnum.BASE_HOME) }