AY 4 years ago
parent
commit
becd9fc2d7
2 changed files with 2 additions and 1 deletions
  1. BIN
      photo/build.zip
  2. 2 1
      photo/src/ImageList.js

BIN
photo/build.zip


+ 2 - 1
photo/src/ImageList.js

@@ -67,7 +67,7 @@ class imageList extends React.Component {
     }
 
     shareImage = () => {
-        var CIP = this.state.images[this.state.currentImage].src;
+        var CIP = this.state.images[this.state.currentImage].vsrc;
         this.setState({ open: true, currentImagePath: CIP });
         fetch("/system/file_system/share/new?path=" + CIP, {})
         //fetch("/backend_test/new?path=" + CIP, {})
@@ -277,6 +277,7 @@ imageList.propTypes = {
     images: PropTypes.arrayOf(
         PropTypes.shape({
             src: PropTypes.string.isRequired,
+            vsrc: PropTypes.string.isRequired,
             thumbnail: PropTypes.string.isRequired,
             srcset: PropTypes.array,
             caption: PropTypes.oneOfType([