This commit is contained in:
quantulr
2023-10-18 17:24:21 +08:00
parent e81644353d
commit 62b38cbefb
2 changed files with 20 additions and 15 deletions

View File

@ -1,8 +1,8 @@
<template> <template>
<div <div
class="sidebar-logo-container" class="sidebar-logo-container"
:class="{ collapse: collapse }" :class="{ collapse: collapse }"
:style="{ :style="{
backgroundColor: backgroundColor:
sideTheme === 'theme-dark' sideTheme === 'theme-dark'
? variables.menuBackground ? variables.menuBackground
@ -11,16 +11,16 @@
> >
<transition name="sidebarLogoFade"> <transition name="sidebarLogoFade">
<router-link <router-link
v-if="collapse" v-if="collapse"
key="collapse" key="collapse"
class="sidebar-logo-link" class="sidebar-logo-link"
to="/" to="/"
> >
<img v-if="logoSmall" :src="logoSmall" class="sidebar-logo-small" /> <img v-if="logoSmall" :src="logoSmall" class="sidebar-logo-small"/>
<h1 <h1
v-else v-else
class="sidebar-title" class="sidebar-title"
:style="{ :style="{
color: color:
sideTheme === 'theme-dark' sideTheme === 'theme-dark'
? variables.logoTitleColor ? variables.logoTitleColor
@ -31,8 +31,11 @@
</h1> </h1>
</router-link> </router-link>
<router-link v-else key="expand" class="sidebar-logo-link" to="/"> <router-link v-else key="expand" class="sidebar-logo-link" to="/">
<img v-if="logo" :src="logo" class="sidebar-logo" /> <!-- <img v-if="logo" :src="logo" class="sidebar-logo" />-->
<!-- <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }}</h1> --> <!-- <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }}</h1>-->
<h1 class="sidebar-title"
:style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">
咸海生态治理国际科技产业合作信息化平台</h1>
</router-link> </router-link>
</transition> </transition>
</div> </div>
@ -78,12 +81,14 @@ const sideTheme = computed(() => settingsStore.sideTheme);
& .sidebar-logo-link { & .sidebar-logo-link {
height: 100%; height: 100%;
width: 100%; width: 100%;
& .sidebar-logo { & .sidebar-logo {
width: 75px; width: 75px;
height: 22px; height: 22px;
vertical-align: middle; vertical-align: middle;
margin-right: 12px; margin-right: 12px;
} }
& .sidebar-logo-small { & .sidebar-logo-small {
// width: 32px; // width: 32px;
width: unset; width: unset;

View File

@ -32,8 +32,8 @@ export default defineConfig(({ mode, command }) => {
// https://cn.vitejs.dev/config/#server-proxy // https://cn.vitejs.dev/config/#server-proxy
"/dev-api": { "/dev-api": {
// target: "http://192.168.110.10:1618", // target: "http://192.168.110.10:1618",
// target: 'http://101.34.131.16:1618', target: 'http://101.34.131.16:81/api',
target: "http://101.34.251.155:81/api", // target: "http://101.34.251.155:81/api",
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, ""), rewrite: (p) => p.replace(/^\/dev-api/, ""),
}, },