From 3c7b7e021f68da377ed3d766dd2ba8bac123fc35 Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Tue, 5 Sep 2023 10:27:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=A1=A8?= =?UTF-8?q?=E6=83=85=E5=8C=85=E7=AE=AD=E5=A4=B4=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/ChatInput/emoji.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/emoji.vue b/resources/assets/js/pages/manage/components/ChatInput/emoji.vue index 48e9e1aa7..e4cb89127 100644 --- a/resources/assets/js/pages/manage/components/ChatInput/emoji.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/emoji.vue @@ -85,7 +85,9 @@ export default { }, mounted() { this.initData() - this.onMonitorWheel() + if(!this.$store.state.windowPortrait){ + this.onMonitorWheel() + } }, watch: { type() { @@ -127,7 +129,7 @@ export default { showEmojiMenuScrollRightBtn(){ const container = this.$refs['chatEmojiMenuRef']; const liWidth = container?.querySelector('li')?.offsetWidth || 48; - return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - 34 + return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - (this.$store.state.windowPortrait ? 34 : 0) } }, methods: {