yusheng hai 1 semana
pai
achega
8f4f4ea466
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/utils/file.js

+ 1 - 2
src/utils/file.js

@@ -14,12 +14,11 @@ export function getImageUrl(path) {
 }
 }
 // 从反显url上获取接口需要path
 // 从反显url上获取接口需要path
 export function getImagePath(url) {
 export function getImagePath(url) {
-  console.log(url,'url')
   if(!url)return;
   if(!url)return;
   let fileNames = url.split('/');
   let fileNames = url.split('/');
 
 
  
  
-   return 'http://aiot.zoomwin.com.cn:51001' +
+   return window.location.origin +
     '/api/main/file/getFile?objectName=' +
     '/api/main/file/getFile?objectName=' +
     url +
     url +
     '&fullfilename=' +
     '&fullfilename=' +