Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王旭
mt-education-mobile
Commits
1c095855
Commit
1c095855
authored
Feb 20, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考试系统地址修改
parent
f36c8d9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.env.production
.env.production
+1
-1
request.js
src/utils/request.js
+1
-1
No files found.
.env.production
View file @
1c095855
...
@@ -5,7 +5,7 @@ ENV = 'production'
...
@@ -5,7 +5,7 @@ ENV = 'production'
VUE_APP_BASE_API = '/api/education/v1'
VUE_APP_BASE_API = '/api/education/v1'
VUE_APP_BASE_API2 = ''
VUE_APP_BASE_API2 = ''
# 考试系统地址
# 考试系统地址
VUE_APP_BASE_API3 = 'http://192.168.5.1
6
1:7044'
VUE_APP_BASE_API3 = 'http://192.168.5.1
9
1:7044'
# 手机端前台地址
# 手机端前台地址
VUE_APP_BASE_API4 = 'http://192.168.5.54/education-mobile'
VUE_APP_BASE_API4 = 'http://192.168.5.54/education-mobile'
# 不走网关的后台地址
# 不走网关的后台地址
...
...
src/utils/request.js
View file @
1c095855
...
@@ -15,7 +15,7 @@ const formData = function(data) {
...
@@ -15,7 +15,7 @@ const formData = function(data) {
service
=
axios
.
create
({
service
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// url = base url + request url
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
// withCredentials: true, // send cookies when cross-domain requests
timeout
:
60
000
,
// request timeout
timeout
:
20
*
60
*
1
000
,
// request timeout
headers
:
{
'clientType'
:
'app'
}
headers
:
{
'clientType'
:
'app'
}
})
})
...
...
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