Skip to content

Commit

Permalink
开启应用配置
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Oct 19, 2023
1 parent 870b8ac commit 6943770
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/components/Logo/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const to = computed(() => {
</script>

<template>
<router-link :to="to" class="flex-center gap-2 w-inherit h-[var(--g-sidebar-logo-height)] px-3 no-underline" :class="{ 'cursor-pointer': settingsStore.settings.home.enable }" :title="title">
<router-link :to="to" class="flex-center gap-2 w-inherit h-[var(--g-sidebar-logo-height)] px-3 text-inherit no-underline" :class="{ 'cursor-pointer': settingsStore.settings.home.enable }" :title="title">
<img v-if="showLogo" :src="logo" class="logo w-[30px] h-[30px] object-contain">
<span v-if="showTitle" class="block font-bold text-initial truncate">{{ title }}</span>
<span v-if="showTitle" class="block font-bold truncate">{{ title }}</span>
</router-link>
</template>
3 changes: 3 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import type { RecursiveRequired, Settings } from '#/global'
import settingsDefault from '@/settings.default'

const globalSettings: Settings.all = {
app: {
enableAppSetting: true,
},
layout: {
enableMobileAdaptation: true,
},
Expand Down

0 comments on commit 6943770

Please sign in to comment.