Explorar o código

3.0.54 修改 图片路径的BUG,路径支持 多级目录。

YangZhiJie %!s(int64=2) %!d(string=hai) anos
pai
achega
1b3bdb5ac0
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      package.json
  2. 2 2
      src/common/Common.js

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-eam-v3",
   "description": "Leanwo Prodog Client",
-  "version": "3.0.53",
+  "version": "3.0.54",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 2 - 2
src/common/Common.js

@@ -135,7 +135,7 @@ export default {
     if (imageName == null) {
       return null;
     }
-    return encodeURIComponent('/api/file/imageDownload?className=' + className + '&fileName=' + imageName);
+    return '/api/file/imageDownload?className=' + className + '&fileName=' + encodeURIComponent(imageName);
   },
 
 
@@ -144,7 +144,7 @@ export default {
     if (imageName == null) {
       return null;
     }
-    return encodeURIComponent('/api/file/thumbnailImageDownload?className=' + className + '&fileName=' + imageName);
+    return '/api/file/thumbnailImageDownload?className=' + className + '&fileName=' + encodeURIComponent(imageName);
   },