Browse Source

feat: make sidebar logo link to home page (#822)

#### What type of PR is this?

/kind feature

#### What this PR does / why we need it:

将侧边栏的 Logo 链接到首页。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2847

#### Screenshots:

<img width="1920" alt="image" src="https://user-images.githubusercontent.com/21301288/212281869-19729c60-8e5c-4a50-b087-55b360b1aedb.png">

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
支持点击 Console 侧边栏 Logo 跳转到首页
```
pull/818/head^2
Ryan Wang 2 years ago committed by GitHub
parent
commit
b132a950a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/layouts/BasicLayout.vue

6
src/layouts/BasicLayout.vue

@ -189,7 +189,11 @@ onMounted(generateMenus);
<div class="flex h-full">
<aside class="navbar fixed hidden h-full overflow-y-auto md:block">
<div class="logo flex justify-center pt-5 pb-7">
<IconLogo />
<a href="/" target="_blank" title="访问首页">
<IconLogo
class="cursor-pointer select-none transition-all hover:brightness-125"
/>
</a>
</div>
<div class="px-3">
<div

Loading…
Cancel
Save