feat: 样式调整

This commit is contained in:
muwoo
2021-06-24 15:51:33 +08:00
parent 3d0e57bc48
commit d6e32cf0e0
4 changed files with 97 additions and 21 deletions

View File

@@ -90,6 +90,7 @@ export default {
...mapActions('main', ['onSearch', 'showMainUI']),
...mapMutations('main', ['commonUpdate']),
checkNeedInit(e) {
// 如果搜索栏无内容,且按了删除键,则清空 tag
if (this.searchValue === '' && e.keyCode === 8) {
this.closeTag();
}