File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export default {
134134 }
135135
136136 &-icon {
137- font-size : 20 px ;
137+ font-size : 18 px ;
138138 line-height : 1 ;
139139 padding-top : 5px ;
140140 padding-right : 5px ;
Original file line number Diff line number Diff line change 2222 v-if =" item && item.name"
2323 :to =" { path: item.path === '' ? '/' : item.path }"
2424 >
25- <a-icon v-if =" index == 0" :type =" item.meta.icon" />
25+ <a-icon v-if =" index == 0" :type =" item.meta.icon" style = " font-size : 16 px " @click = " resetToMainView " />
2626 {{ $t(item.meta.title) }}
2727 </router-link >
2828 <span v-else-if =" $route.params.id" >
@@ -63,6 +63,10 @@ export default {
6363 this .$route .matched .forEach ((item ) => {
6464 this .breadList .push (item)
6565 })
66+ },
67+ resetToMainView () {
68+ this .$store .dispatch (' SetProject' , {})
69+ this .$store .dispatch (' ToggleTheme' , ' light' )
6670 }
6771 }
6872}
You can’t perform that action at this time.
0 commit comments