no message

This commit is contained in:
kuaifan 2025-03-09 22:52:38 +08:00
parent 5154348cf9
commit 9c78db8d45

View File

@ -257,11 +257,9 @@ export default {
}, },
onShow() { onShow() {
const autoFocus = this.total === 0 || this.showModal || !this.windowTouch //
this.showModal = true this.showModal = true
if (this.total > 0) { autoFocus && this.$nextTick(() => {
return
}
this.$nextTick(() => {
const $el = this.$refs.searchKey?.$refs?.input; const $el = this.$refs.searchKey?.$refs?.input;
if ($el) { if ($el) {
$el.style.caretColor = 'transparent'; $el.style.caretColor = 'transparent';