From 7a544b974642cacef738cccb0b31284f07792edb Mon Sep 17 00:00:00 2001 From: winixt Date: Wed, 12 Apr 2023 17:07:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20logo=20=E6=B7=BB=E5=8A=A0=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-template/src/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/fes-template/src/app.js b/packages/fes-template/src/app.js index 63ceb855..fa0da14d 100644 --- a/packages/fes-template/src/app.js +++ b/packages/fes-template/src/app.js @@ -1,6 +1,8 @@ -import { access as accessApi, pinia, createWatermark } from '@fesjs/fes'; +import { + access as accessApi, pinia, getRouter, createWatermark +} from '@fesjs/fes'; import PageLoading from '@/components/PageLoading'; import UserCenter from '@/components/UserCenter'; import { useStore } from '@/store/main'; @@ -29,6 +31,10 @@ export const beforeRender = { export const layout = layoutConfig => ({ ...layoutConfig, customHeader: , + onClickLogo() { + const router = getRouter(); + router.push('/'); + }, menus: (defaultMenuData) => { const menusRef = ref(defaultMenuData); // watch(() => initialValue.initialState.userName, () => {