解决搜索问题

This commit is contained in:
yi-ge 2020-07-17 00:02:48 +08:00
parent 321dd05d97
commit d385062f5f
2 changed files with 2 additions and 2 deletions

View File

@ -8,6 +8,6 @@ footer
| Copyright © 2020 WangYi. | Copyright © 2020 WangYi.
br br
| All Rights Reserved. | All Rights Reserved.
a(href='http://www.beian.miit.gov.cn', target='_blank', rel='external nofollow', style='color: #ccc') a(href='http://www.beian.miit.gov.cn', target='_blank', rel='external nofollow', style='color: #ccc; margin-left: 5px')
| 浙ICP备14013313号-2 | 浙ICP备14013313号-2
</template> </template>

View File

@ -116,7 +116,7 @@ export default {
}, 3000) }, 3000)
}, },
search () { search () {
if (this.searchVal !== '') { this.$router.push({ path: 'search?q=' + this.searchVal }) } if (this.searchVal !== '') { this.$router.push({ path: '/search?q=' + this.searchVal }) }
} }
} }
} }