Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d110b00e
authored
2025-01-24 19:01:23 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
访问流通平台
1 parent
b8ef51e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
.env.development
default.conf
src/api/modules/queryService.ts
vite.config.ts
.env.development
View file @
d110b00
...
...
@@ -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
...
...
default.conf
View file @
d110b00
...
...
@@ -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
{
# 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
...
...
src/api/modules/queryService.ts
View file @
d110b00
...
...
@@ -86,7 +86,7 @@ export const getProduct = (params) => request({
export const getTenantInfo = (params) => request({
// url: `
$
{
import
.
meta
.
env
.
VITE_APP_PERSONAL_URL
}
/tenant/g
etByGuid
/
$
{
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
})
...
...
vite.config.ts
View file @
d110b00
...
...
@@ -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'
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment