Skip to content

Commit

Permalink
change default search
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceYu authored Dec 27, 2024
1 parent 08385f8 commit a399455
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion site/src/components/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default {
searchValue: '',
showCate: false,
// 默认只展示技能相关文章
matchSkill: true,
matchSkill: !!localStorage.getItem('matchSkill'),
hotwords,
ranges,
rss: [],
Expand Down Expand Up @@ -350,6 +350,11 @@ export default {
},
changeSkill () {
this.matchSkill = !this.matchSkill
if (this.matchSkill) {
localStorage.setItem('matchSkill', 'true')
} else {
localStorage.removeItem('matchSkill')
}
}
},
mounted () {
Expand Down

0 comments on commit a399455

Please sign in to comment.