From 8eaff830addd104862977c21aa8d2d9357fe36b9 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 27 Oct 2024 11:47:26 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AE=A1=E6=89=B9=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=B5=8F=E8=A7=88=E5=8F=AF=E6=BB=91=E5=8A=A8?= =?UTF-8?q?=E8=BF=9E=E7=BB=AD=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/approve/details.vue | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/resources/assets/js/pages/manage/approve/details.vue b/resources/assets/js/pages/manage/approve/details.vue index 841caa25b..507a857d0 100644 --- a/resources/assets/js/pages/manage/approve/details.vue +++ b/resources/assets/js/pages/manage/approve/details.vue @@ -54,7 +54,7 @@

{{$L('图片')}}

-
+
@@ -148,13 +148,13 @@

{{$L('全文评论')}}

- +
-

{{item.nickname}}

-

{{item.created_at}}

+

{{ item.nickname }}

+

{{ item.created_at }}

{{ getTimeAgo(item.created_at) }}
@@ -162,8 +162,8 @@ {{ getContent(item.content) }}
-
- +
+
@@ -483,20 +483,23 @@ export default { return src + '_thumb.' + src.split('.').pop() }, // 打开图片 - onViewPicture(currentUrl, datas, type) { + onViewPicture(currentUrl, type) { + const datas = []; if (type == 1) { - datas = datas.split(',') + datas.push(...this.datas.var.other.split(',')) } if (type == 2) { - datas = this.getPictures(datas) + this.datas.global_comments.map(h => { + datas.push(...this.getPictures(h.content)) + }) } const list = datas.map(src => { return { src: $A.mainUrl(src) } }); - const index = list.findIndex(({ src }) => src === $A.mainUrl(currentUrl)); - this.$store.dispatch("previewImage", { index, list }) + const index = list.findIndex(({src}) => src === $A.mainUrl(currentUrl)); + this.$store.dispatch("previewImage", {index, list}) } } }