From 657bc734ad4193d2594626261ae2f9825f4265c2 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期六, 12 十月 2024 16:32:28 +0800
Subject: [PATCH] 检测工具预览图片

---
 src/views/tool/online/index.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/tool/online/index.vue b/src/views/tool/online/index.vue
index 0111d58..e397ba4 100644
--- a/src/views/tool/online/index.vue
+++ b/src/views/tool/online/index.vue
@@ -22,6 +22,7 @@
                 <el-image
                   style="width: 100px; height: 100px"
                   :src="result.img"
+                  :preview-src-list="[result.img]"
                   fit="fill">
                 </el-image>
               </div>
@@ -98,6 +99,9 @@
       this.form.ip = this.form.ip.replace(/^\s+|\s+$/g, '')
       this.loading = true
       check(this.form).then(res => {
+        if (res.data.img) {
+          res.data.img = this.$img + res.data.img
+        }
         this.result = res.data
         this.loading = false
       })

--
Gitblit v1.8.0