d110b00e by lxs

访问流通平台

1 parent b8ef51e6
......@@ -82,7 +82,7 @@ VITE_APP_ATTACHMENT_TEMPLATE = ms-daop-personel-service
VITE_APP_PERSONAL_URL = 'ms-daop-personel-service'
#流通平台地址
VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/
VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/api/
# 测试环境访问地址
# VITE_API_CIRCULATION_URL = http://192.168.6.22:29900/circulation
......
......@@ -61,7 +61,7 @@ server {
# 使用 rewrite 将 /circulation 替换为 /new-api
rewrite ^/circulation/(.*)$ /$1 break;
proxy_pass https://daop-lt-test.zgsjzc.com;
proxy_pass https://daop-lt-test.zgsjzc.com/api;
}
location /delivery {
# 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
......
......@@ -86,7 +86,7 @@ export const getProduct = (params) => request({
export const getTenantInfo = (params) => request({
// url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
// url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
url: `https://daop-zcgl-test.zgsjzc.com/circulation/api/ms-data-circulation-portal-service/enterprise/detail-by-name`,
url: `https://daop-zcgl-test.zgsjzc.com/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
method: 'get',
params
})
......
......@@ -40,11 +40,11 @@ export default ({ mode, command }) => {
changeOrigin: env.VITE_OPEN_PROXY === 'true',
rewrite: path => path.replace(/\/portal/, ''),
},
'/circulation':{
target: env.VITE_APP_CIRCULATION,
changeOrigin: env.VITE_OPEN_PROXY === 'true',
rewrite: path => path.replace(/\/circulation/, ''),
},
// '/circulation':{
// target: env.VITE_APP_CIRCULATION,
// changeOrigin: env.VITE_OPEN_PROXY === 'true',
// rewrite: path => path.replace(/\/circulation/, ''),
// },
'/delivery':{
target: env.VITE_APP_DATA_DELIVERY,
changeOrigin: env.VITE_OPEN_PROXY === 'true',
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!