Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
260ac4c5
Commit
260ac4c5
authored
Mar 06, 2020
by
弓厶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整网络地址
parent
fe37a3d2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
config/local.env.js
+11
-1
deploy/prod/winsun-docker-application-list/gdtel-gztel-school-center/ui/nginx/config/ui.conf
+7
-3
src/api/school-center/PartnerManagementAPI.js
+1
-1
src/utils/request.js
+4
-2
No files found.
config/local.env.js
View file @
260ac4c5
...
@@ -12,7 +12,7 @@ const local = {
...
@@ -12,7 +12,7 @@ const local = {
'^/api/auth/ciop'
:
'/auth/ciop'
'^/api/auth/ciop'
:
'/auth/ciop'
}
}
},
},
'/api/api/ciop'
:
{
/*
'/api/api/ciop': {
target: 'http://localhost:11091',
target: 'http://localhost:11091',
//target: 'http://132.97.54.60:58334',
//target: 'http://132.97.54.60:58334',
ws: false,
ws: false,
...
@@ -41,6 +41,16 @@ const local = {
...
@@ -41,6 +41,16 @@ const local = {
//默认所有请求都加了api前缀,需要去掉
//默认所有请求都加了api前缀,需要去掉
'^/api/app': '/'
'^/api/app': '/'
}
}
},*/
'/api/manager'
:
{
target
:
'http://localhost:10001'
,
ws
:
false
,
changeOrigin
:
true
,
pathRewrite
:
{
//默认所有请求都加了api前缀,需要去掉
'^/api/manager'
:
'/manager'
}
}
}
}
}
}
}
...
...
deploy/prod/winsun-docker-application-list/gdtel-gztel-school-center/ui/nginx/config/ui.conf
View file @
260ac4c5
server_tokens
off
;
server_tokens
off
;
server
{
server
{
listen
11090
;
listen
11090
;
server_name
172
.
18
.
101
.
171
;
server_name
172
.
18
.
101
.
171
;
...
@@ -21,8 +21,12 @@
...
@@ -21,8 +21,12 @@
proxy_pass
http
://
gateway
:
10001
/
manager
;
proxy_pass
http
://
gateway
:
10001
/
manager
;
}
}
# 新用户模块
# 老用户模块
error_page
500
502
503
504
/
50
x
.
html
;
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
location
= /
50
x
.
html
{
root
html
;
root
html
;
}
}
}
}
src/api/school-center/PartnerManagementAPI.js
View file @
260ac4c5
import
{
postAction
,
getAotion
}
from
'@/api/manage'
import
{
postAction
,
getAotion
}
from
'@/api/manage'
const
prefix
=
'/
api
/ciop'
;
const
prefix
=
'/
manager
/ciop'
;
// 获取活动列表
// 获取活动列表
let
findByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/list"
,
params
);
let
findByList
=
(
params
)
=>
postAction
(
prefix
+
"/school/partner/list"
,
params
);
...
...
src/utils/request.js
View file @
260ac4c5
...
@@ -6,10 +6,12 @@ import {Modal, notification} from 'ant-design-vue'
...
@@ -6,10 +6,12 @@ import {Modal, notification} from 'ant-design-vue'
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
import
{
serialize
}
from
'@/utils/util'
import
{
serialize
}
from
'@/utils/util'
const
env
=
process
.
env
.
NODE_ENV
;
//获取当前环境
//获取当前环境
const
env
=
process
.
env
.
NODE_ENV
;
let
api
=
"/"
+
window
.
wsPackName
;
let
api
=
"/"
+
window
.
wsPackName
;
if
(
env
===
'development'
){
//测试环境默认添加前缀
if
(
env
===
'development'
){
//测试环境默认添加前缀
api
=
'/api/'
+
window
.
wsPackName
;
api
=
'/api/'
+
window
.
wsPackName
;
}
}
// 创建 axios 实例
// 创建 axios 实例
...
...
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