提交 34a40162 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 3cfa3c2a
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
overflow: hidden;
} }
.course-item-pic { .course-item-pic {
width: 2.4rem; width: 2.4rem;
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
overflow: hidden;
} }
.course-item-pic { .course-item-pic {
width: 2.4rem; width: 2.4rem;
......
...@@ -105,6 +105,9 @@ export default { ...@@ -105,6 +105,9 @@ export default {
this.$router.replace({ query: { tab: name, keywords: this.searchValue } }) this.$router.replace({ query: { tab: name, keywords: this.searchValue } })
}, },
onSearch() { onSearch() {
if (!this.searchValue.trim()) {
return
}
this.$router.replace({ this.$router.replace({
query: { tab: this.tabActive, keywords: this.searchValue } query: { tab: this.tabActive, keywords: this.searchValue }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论