访问流通平台
Showing
4 changed files
with
8 additions
and
8 deletions
| ... | @@ -82,7 +82,7 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service | ... | @@ -82,7 +82,7 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service |
| 82 | VITE_APP_PERSONAL_URL = 'ms-daop-personel-service' | 82 | VITE_APP_PERSONAL_URL = 'ms-daop-personel-service' |
| 83 | 83 | ||
| 84 | #流通平台地址 | 84 | #流通平台地址 |
| 85 | VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/ | 85 | VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/api/ |
| 86 | # 测试环境访问地址 | 86 | # 测试环境访问地址 |
| 87 | # VITE_API_CIRCULATION_URL = http://192.168.6.22:29900/circulation | 87 | # VITE_API_CIRCULATION_URL = http://192.168.6.22:29900/circulation |
| 88 | 88 | ... | ... |
| ... | @@ -61,7 +61,7 @@ server { | ... | @@ -61,7 +61,7 @@ server { |
| 61 | 61 | ||
| 62 | # 使用 rewrite 将 /circulation 替换为 /new-api | 62 | # 使用 rewrite 将 /circulation 替换为 /new-api |
| 63 | rewrite ^/circulation/(.*)$ /$1 break; | 63 | rewrite ^/circulation/(.*)$ /$1 break; |
| 64 | proxy_pass https://daop-lt-test.zgsjzc.com; | 64 | proxy_pass https://daop-lt-test.zgsjzc.com/api; |
| 65 | } | 65 | } |
| 66 | location /delivery { | 66 | location /delivery { |
| 67 | # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问 | 67 | # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问 | ... | ... |
| ... | @@ -86,7 +86,7 @@ export const getProduct = (params) => request({ | ... | @@ -86,7 +86,7 @@ export const getProduct = (params) => request({ |
| 86 | export const getTenantInfo = (params) => request({ | 86 | export const getTenantInfo = (params) => request({ |
| 87 | // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, | 87 | // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, |
| 88 | // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, | 88 | // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, |
| 89 | url: `https://daop-zcgl-test.zgsjzc.com/circulation/api/ms-data-circulation-portal-service/enterprise/detail-by-name`, | 89 | url: `https://daop-zcgl-test.zgsjzc.com/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, |
| 90 | method: 'get', | 90 | method: 'get', |
| 91 | params | 91 | params |
| 92 | }) | 92 | }) | ... | ... |
| ... | @@ -40,11 +40,11 @@ export default ({ mode, command }) => { | ... | @@ -40,11 +40,11 @@ export default ({ mode, command }) => { |
| 40 | changeOrigin: env.VITE_OPEN_PROXY === 'true', | 40 | changeOrigin: env.VITE_OPEN_PROXY === 'true', |
| 41 | rewrite: path => path.replace(/\/portal/, ''), | 41 | rewrite: path => path.replace(/\/portal/, ''), |
| 42 | }, | 42 | }, |
| 43 | '/circulation':{ | 43 | // '/circulation':{ |
| 44 | target: env.VITE_APP_CIRCULATION, | 44 | // target: env.VITE_APP_CIRCULATION, |
| 45 | changeOrigin: env.VITE_OPEN_PROXY === 'true', | 45 | // changeOrigin: env.VITE_OPEN_PROXY === 'true', |
| 46 | rewrite: path => path.replace(/\/circulation/, ''), | 46 | // rewrite: path => path.replace(/\/circulation/, ''), |
| 47 | }, | 47 | // }, |
| 48 | '/delivery':{ | 48 | '/delivery':{ |
| 49 | target: env.VITE_APP_DATA_DELIVERY, | 49 | target: env.VITE_APP_DATA_DELIVERY, |
| 50 | changeOrigin: env.VITE_OPEN_PROXY === 'true', | 50 | changeOrigin: env.VITE_OPEN_PROXY === 'true', | ... | ... |
-
Please register or sign in to post a comment