From dceb8e4c7344bd19fedbfbe0db0d5bdc2819baa9 Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期五, 16 八月 2024 19:24:58 +0800 Subject: [PATCH] fix: 修改登录logo --- src/components/navbar/index.vue | 8 +++++--- config/vite.config.dev.ts | 12 ++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/config/vite.config.dev.ts b/config/vite.config.dev.ts index 05d14d4..0a0dfad 100644 --- a/config/vite.config.dev.ts +++ b/config/vite.config.dev.ts @@ -14,8 +14,8 @@ proxy: { '/base': { // target: 'http://aiotlink.com:8189', - //target: 'http://192.168.20.116:8089', - target: 'http://192.168.20.158:8089', + target: 'http://192.168.20.116:8089', + // target: 'http://192.168.20.158:8089', changeOrigin: true, ws: true, // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), @@ -24,16 +24,16 @@ }, '/api': { // target: 'http://aiotlink.com:8189', - //target: 'http://192.168.20.116:8089', - target: 'http://192.168.20.158:8089', + target: 'http://192.168.20.116:8089', + // target: 'http://192.168.20.158:8089', changeOrigin: true, ws: true, // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), }, '/api/v1': { // target: 'http://aiotlink.com:8189', - //target: 'http://192.168.20.116:8089', - target: 'http://192.168.20.158:8089', + target: 'http://192.168.20.116:8089', + // target: 'http://192.168.20.158:8089', changeOrigin: true, ws: true, // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), diff --git a/src/components/navbar/index.vue b/src/components/navbar/index.vue index 1b07313..638bc53 100644 --- a/src/components/navbar/index.vue +++ b/src/components/navbar/index.vue @@ -199,6 +199,7 @@ import useUser from '@/hooks/user'; import Menu from '@/components/menu/index.vue'; import MessageBox from '../message-box/index.vue'; + import login from '@/assets/images/icon-logo.png'; const appStore = useAppStore(); const userStore = useUserStore(); @@ -206,9 +207,10 @@ const { changeLocale, currentLocale } = useLocale(); const { isFullscreen, toggle: toggleFullScreen } = useFullscreen(); const locales = [...LOCALE_OPTIONS]; - const avatar = computed(() => { - return userStore.avatar; - }); + const avatar = login; + //const avatar = computed(() => { + // return userStore.avatar; + //}); const theme = computed(() => { return appStore.theme; }); -- Gitblit v1.8.0