File tree 1 file changed +9
-16
lines changed
1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 14
14
"
15
15
>
16
16
<CSidebarHeader class =" border-bottom" >
17
- <CSidebarBrand >
18
- <CIcon
19
- custom-class-name =" sidebar-brand-full"
20
- :icon =" logo"
21
- :height =" 32"
22
- />
23
- <CIcon
24
- custom-class-name =" sidebar-brand-narrow"
25
- :icon =" sygnet"
26
- :height =" 32"
27
- />
28
- </CSidebarBrand >
17
+ <RouterLink custom to =" /" v-slot =" { href, navigate }" >
18
+ <CSidebarBrand v-bind =" $attrs" as =" a" :href =" href" @click =" navigate" >
19
+ <CIcon custom-class-name =" sidebar-brand-full" :icon =" logo" :height =" 32" />
20
+ <CIcon custom-class-name =" sidebar-brand-narrow" :icon =" sygnet" :height =" 32" />
21
+ </CSidebarBrand >
22
+ </RouterLink >
29
23
<CCloseButton class =" d-lg-none" dark @click =" $store.commit('toggleSidebar')" />
30
24
</CSidebarHeader >
31
25
<AppSidebarNav />
32
26
<CSidebarFooter class =" border-top" >
33
- <CSidebarToggler
34
- class =" d-none d-lg-flex"
35
- @click =" $store.commit('toggleUnfoldable')"
36
- />
27
+ <CSidebarToggler class =" d-none d-lg-flex" @click =" $store.commit('toggleUnfoldable')" />
37
28
</CSidebarFooter >
38
29
</CSidebar >
39
30
</template >
40
31
41
32
<script >
42
33
import { computed } from ' vue'
34
+ import { RouterLink } from ' vue-router'
43
35
import { useStore } from ' vuex'
44
36
import { AppSidebarNav } from ' ./AppSidebarNav'
45
37
import { logo } from ' @/assets/brand/logo'
@@ -48,6 +40,7 @@ export default {
48
40
name: ' AppSidebar' ,
49
41
components: {
50
42
AppSidebarNav,
43
+ RouterLink,
51
44
},
52
45
setup () {
53
46
const store = useStore ()
You can’t perform that action at this time.
0 commit comments