feat: 重新进入插件 清空输入框

This commit is contained in:
ZiuChen 2022-09-20 20:59:02 +08:00
parent bcaa2e29d5
commit e22733530a

View File

@ -45,6 +45,14 @@ const clear = () => {
emit('update:modelValue', '')
nextTick(() => window.focus())
}
utools.onPluginEnter(() => {
//
if (filterText.value) {
clear()
nextTick(() => document.activeElement.blur())
}
})
</script>
<style lang="less" scoped>