From 5ed69b4bb3416ec61abf424375af8650864dbdfa Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 08 八月 2021 17:27:10 +0800
Subject: [PATCH] 2021-08-08

---
 src/tabviews/zshare/normalTable/index.jsx |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx
index 105916e..21feaa5 100644
--- a/src/tabviews/zshare/normalTable/index.jsx
+++ b/src/tabviews/zshare/normalTable/index.jsx
@@ -555,8 +555,9 @@
         <div className="picture-col">
           {photos && photos.map((url, i) => {
             if (item.scale === 'true') {
-              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={() => {
-                MKEmitter.emit('mkImageScale', url, photos.length > 1 ? photos : '')
+              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={(e) => {
+                e.stopPropagation()
+                MKEmitter.emit('mkImageScale', url, photos)
               }} key={`${i}`} src={url} alt=""/>
             } else {
               return <img style={{maxHeight: maxHeight}} key={`${i}`} src={url} alt=""/>
@@ -870,8 +871,9 @@
           <div className="content-fence-top" style={images[0] ? {textAlign: images[0].align} : null}>
             {images.map((_img, index) => {
               if (_img.scale) {
-                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
-                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
+                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={(e) => {
+                  e.stopPropagation()
+                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                 }} key={`${index}`} src={_img.url} alt=""/>
               } else {
                 return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)
@@ -892,7 +894,7 @@
             {images.map((_img, index) => {
               if (_img.scale) {
                 return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
-                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
+                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                 }} key={`${index}`} src={_img.url} alt=""/>
               } else {
                 return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)

--
Gitblit v1.8.0