From 230fe66e821d78cc6a2aeddf737d6e3e3662ac41 Mon Sep 17 00:00:00 2001
From: linxi <957440651@qq.com>
Date: Tue, 18 Aug 2026 14:11:47 +0800
Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5689=20=E3=80=90=E7=A4=BC=E5=93=81?=
=?UTF-8?q?=E9=9B=86=E9=87=87=E4=B8=AD=E5=BF=83=E5=B0=8F=E7=A8=8B=E5=BA=8F?=
=?UTF-8?q?=E3=80=91=E3=80=90=E6=88=91=E7=9A=84=E8=AE=A2=E5=8D=95-?=
=?UTF-8?q?=E8=81=94=E7=B3=BB=E5=95=86=E5=AE=B6=E3=80=91=E5=90=91=E5=95=86?=
=?UTF-8?q?=E5=AE=B6=E5=8F=91=E9=80=81=E5=9B=BE=E7=89=87=E6=97=B6=EF=BC=8C?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA=E4=B8=BA?=
=?UTF-8?q?=E7=BA=AF=E7=99=BD=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pkg_common/views/room.vue | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/pkg_common/views/room.vue b/pkg_common/views/room.vue
index cf598e5..b89bc0e 100644
--- a/pkg_common/views/room.vue
+++ b/pkg_common/views/room.vue
@@ -11,9 +11,9 @@
{{ item.username }}
{{ item.msg_content }}
-
+
-
+
@@ -22,7 +22,7 @@
{{ item.username }}
{{ item.msg_content }}
-
+
@@ -179,6 +179,12 @@ export default {
wsJson(json) {
return JSON.parse(json)
},
+ // 拼接图片完整地址:七牛上传后消息里只存 key,需要补上资源域名;http 统一转 https
+ imgUrl(content) {
+ if (!content) return ''
+ if (/^https?:\/\//i.test(content)) return content.replace(/^http:\/\//i, 'https://')
+ return this.webUrl + '/' + content
+ },
getUploadToken() {
let that = this;