From 081d6dc91eba9f9bf9fbe20734e5a01fc7542554 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Fri, 11 Mar 2022 10:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/PlayDetail/components/MusicComment/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue b/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue index d7522199..6a3b4587 100644 --- a/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue +++ b/src/renderer/components/core/PlayDetail/components/MusicComment/index.vue @@ -134,6 +134,10 @@ export default { setWidth() { setTimeout(() => { this.$refs.dom_container.style.width = Math.floor(this.$refs.dom_container.parentNode.clientWidth * 0.5) + 'px' + + setTimeout(() => { + this.handleToggleTab(this.tabActiveId, true) + }) }) }, async getComment(musicInfo, page, limit, retryNum = 0) { @@ -221,8 +225,8 @@ export default { this.newComment.nextPage = page this.handleGetNewComment(this.currentMusicInfo, page, this.newComment.limit) }, - handleToggleTab(id) { - if (this.tabActiveId == id) return + handleToggleTab(id, force) { + if (!force && this.tabActiveId == id) return switch (id) { case 'hot': this.$refs.dom_tabMain.scrollLeft = 0