Skip to content

Commit

Permalink
feat: make sidebar logo link to home page (halo-dev/console#822)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind feature

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

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

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

Fixes halo-dev#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 跳转到首页
```
  • Loading branch information
ruibaby authored Jan 16, 2023
1 parent 233295e commit 3288bed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layouts/BasicLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3288bed

Please sign in to comment.