This commit is contained in:
quantulr
2023-10-18 17:24:11 +08:00
parent 9c5dd0656a
commit f2878af4b3
5 changed files with 23 additions and 8 deletions

View File

@ -27,11 +27,12 @@
: variables.logoLightTitleColor,
}"
>
{{ title }}
<!-- {{ title }}-->
{{ t("common.siteTitle") }}
</h1>
</router-link>
<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="{
@ -41,7 +42,8 @@
: variables.logoLightTitleColor,
}"
>
{{ title }}
<!-- {{ title }}-->
{{ t("common.siteTitle") }}
</h1>
</router-link>
</transition>
@ -53,6 +55,7 @@ import variables from "@/assets/styles/variables.module.scss";
import logo from "@/assets/logo/logo.png";
import logoSmall from "@/assets/logo/logo_small.png";
import useSettingsStore from "@/store/modules/settings";
import { useI18n } from "vue-i18n";
defineProps({
collapse: {
@ -60,7 +63,7 @@ defineProps({
required: true,
},
});
const { t } = useI18n();
const title = ref("数字科创大脑");
const settingsStore = useSettingsStore();
const sideTheme = computed(() => settingsStore.sideTheme);
@ -96,6 +99,7 @@ const sideTheme = computed(() => settingsStore.sideTheme);
vertical-align: middle;
margin-right: 12px;
}
& .sidebar-logo-small {
// width: 32px;
width: unset;