mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-19 10:06:38 +08:00
fix(projects): 头部logo链接更正
This commit is contained in:
parent
3ec1fc8f0c
commit
5d8c3f54a3
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<a :href="homePath" class="nowrap-hidden flex-center h-64px cursor-pointer">
|
<a href="/" class="nowrap-hidden flex-center h-64px cursor-pointer">
|
||||||
<img src="@/assets/img/common/logo.png" alt="" class="w-32px h-32px" />
|
<img src="@/assets/img/common/logo.png" alt="" class="w-32px h-32px" />
|
||||||
<h2 v-show="showTitle" class="pl-8px text-16px text-primary font-bold">{{ title }}</h2>
|
<h2 v-show="showTitle" class="pl-8px text-16px text-primary font-bold">{{ title }}</h2>
|
||||||
</a>
|
</a>
|
||||||
@ -9,13 +9,11 @@
|
|||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useAppStore, useThemeStore } from '@/store';
|
import { useAppStore, useThemeStore } from '@/store';
|
||||||
import { useAppTitle } from '@/hooks';
|
import { useAppTitle } from '@/hooks';
|
||||||
import { EnumRoutePath } from '@/enum';
|
|
||||||
|
|
||||||
const app = useAppStore();
|
const app = useAppStore();
|
||||||
const theme = useThemeStore();
|
const theme = useThemeStore();
|
||||||
const title = useAppTitle();
|
const title = useAppTitle();
|
||||||
|
|
||||||
const showTitle = computed(() => !app.menu.collapsed && theme.navStyle.mode !== 'vertical-mix');
|
const showTitle = computed(() => !app.menu.collapsed && theme.navStyle.mode !== 'vertical-mix');
|
||||||
const homePath = EnumRoutePath['dashboard-analysis'];
|
|
||||||
</script>
|
</script>
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
Loading…
Reference in New Issue
Block a user