Skip to content

Commit cd5fc70

Browse files
committed
关键词检索完释放焦点
1 parent dca503e commit cd5fc70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

blog/layouts/default.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ const goSearch = () => {
241241
path: `/post/list/keyword/${keywordValue}/1`,
242242
})
243243
keyword.value = ''
244+
// 释放焦点
245+
try {
246+
document.activeElement.blur()
247+
} catch (e) {
248+
console.log(e)
249+
}
244250
}
245251
}
246252

0 commit comments

Comments
 (0)