zhangxiao
2024-08-16 dceb8e4c7344bd19fedbfbe0db0d5bdc2819baa9
fix: 修改登录logo
2个文件已修改
20 ■■■■■ 已修改文件
config/vite.config.dev.ts 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/navbar/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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`), ''),
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;
  });