Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
b80f6587
Commit
b80f6587
authored
Sep 10, 2021
by
wcmoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改部署格式,浏览器地址在 nginx 里配置
parent
b40106e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
13 deletions
+22
-13
README.md
README.md
+6
-0
UrlPrefix.js
src/config/UrlPrefix.js
+6
-6
vue.config.js
vue.config.js
+10
-7
No files found.
README.md
View file @
b80f6587
...
@@ -25,4 +25,10 @@ build:hd_prod
...
@@ -25,4 +25,10 @@ build:hd_prod
location /api/ {
location /api/ {
proxy_pass 服务端地址;
proxy_pass 服务端地址;
}
}
-
浏览器地址
```
location /llq {
rewrite ^/(.*) {浏览器地址} permanent;
}
```
src/config/UrlPrefix.js
View file @
b80f6587
const
configModules
=
{
const
configModules
=
{
// 溯源>测试环境
// 溯源>测试环境
"sy_test"
:
{
"sy_test"
:
{
CHAIN_BROWSER_URL_PREFIX
:
'
http://121.40.18.70:8995/
'
,
CHAIN_BROWSER_URL_PREFIX
:
'
/llq
'
,
INERFACE_URL_PREFIX
:
'
http://172.16.101.87:46789
'
,
INERFACE_URL_PREFIX
:
'
/api
'
,
/**
/**
* 网站入口配置
* 网站入口配置
*/
*/
...
@@ -17,10 +17,10 @@ const configModules = {
...
@@ -17,10 +17,10 @@ const configModules = {
},
},
// 溯源>正式环境
// 溯源>正式环境
"sy_prod"
:
{
"sy_prod"
:
{
// CHAIN_BROWSER_URL_PREFIX: 'https://cx.chain33.pro/
',
CHAIN_BROWSER_URL_PREFIX
:
'/llq
'
,
// INERFACE_URL_PREFIX: 'https://sy.chain33.pro
/api',
INERFACE_URL_PREFIX
:
'
/api'
,
CHAIN_BROWSER_URL_PREFIX
:
'http://121.40.18.70:8995/'
,
//
CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/',
INERFACE_URL_PREFIX
:
'http://172.16.101.87:46789'
,
//
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX
:
{
INDEX
:
{
entry
:
'./src/entry/sy/main.ts'
,
entry
:
'./src/entry/sy/main.ts'
,
template
:
'./public/sy/index.html'
,
template
:
'./public/sy/index.html'
,
...
...
vue.config.js
View file @
b80f6587
...
@@ -8,13 +8,17 @@ module.exports = {
...
@@ -8,13 +8,17 @@ module.exports = {
devServer
:
{
devServer
:
{
// port: port,
// port: port,
open
:
true
,
open
:
true
,
// overlay: {
proxy
:
{
// warnings: false,
'^/api'
:
{
// errors: true
target
:
'http://172.16.101.87:46789'
,
// },
pathRewrite
:
{
'^/api'
:
''
,
},
changeOrigin
:
true
,
},
},
},
},
pages
:
{
pages
:
{
index
:
UrlPrefixObj
.
model
.
INDEX
index
:
UrlPrefixObj
.
model
.
INDEX
}
}
};
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment