diff --git a/pkg_common/views/message.vue b/pkg_common/views/message.vue index f756d20..63feab6 100644 --- a/pkg_common/views/message.vue +++ b/pkg_common/views/message.vue @@ -185,12 +185,12 @@ export default { this.showBtn = true this.currentComment = item this.content = '@' + item.senderUserNickname + ' ' + this.cursorIndex = this.content.length this.$nextTick(() => { // 延迟100ms,否则无法聚焦 setTimeout(() => { // 自动聚焦 this.autoFocus = true - this.cursorIndex = this.content.length }, 100) }) },