Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Nei_Meng_An_Jian_4
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
Nei_Meng_An_Jian_4
Commits
5e042fbe
Commit
5e042fbe
authored
Oct 30, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Plain Diff
url硬编码修改为配置 merge
parents
2e5e0bd6
02009f37
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
.env.production
.env.production
+4
-1
request2.js
src/utils/request2.js
+2
-1
request5.js
src/utils/request5.js
+2
-3
Home.vue
src/views/Home.vue
+1
-3
No files found.
.env.production
View file @
5e042fbe
...
@@ -2,6 +2,9 @@ NODE_ENV = 'production'
...
@@ -2,6 +2,9 @@ NODE_ENV = 'production'
#VUE_APP_BASE_API = 'http://192.168.100.226:8080/production'
#VUE_APP_BASE_API = 'http://192.168.100.226:8080/production'
#VUE_APP_BASE_API = 'http://39.98.150.124:8000/production'
#VUE_APP_BASE_API = 'http://39.98.150.124:8000/production'
# VUE_APP_BASE_API = 'http://120.224.103.84:9111/production'
# VUE_APP_BASE_API = 'http://120.224.103.84:9111/production'
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production'
# VUE_APP_BASE_API = 'http://60.31.138.166:8000/production'
VUE_APP_LOCAL_API = 'http://60.31.138.166:8000' // 合并前的241030
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production' // 新合并的地址241030
outputDir = 'production'
outputDir = 'production'
src/utils/request2.js
View file @
5e042fbe
...
@@ -8,7 +8,8 @@ const service = axios.create({
...
@@ -8,7 +8,8 @@ const service = axios.create({
// baseURL: 'http://192.168.1.123:8000/',
// baseURL: 'http://192.168.1.123:8000/',
//baseURL: 'http://192.168.3.166:8000/',
//baseURL: 'http://192.168.3.166:8000/',
// baseURL: 'http://120.224.103.84:9111/',
// baseURL: 'http://120.224.103.84:9111/',
baseURL
:
'
http://60.31.138.166:8000/
'
,
//baseURL: 'http://10.185.163.57:8000/',
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
timeout
:
30000
,
timeout
:
30000
,
})
})
...
...
src/utils/request5.js
View file @
5e042fbe
...
@@ -6,9 +6,8 @@ const service = axios.create({
...
@@ -6,9 +6,8 @@ const service = axios.create({
// baseURL: 'http://192.168.3.216:8000/', // 大龙
// baseURL: 'http://192.168.3.216:8000/', // 大龙
// baseURL: 'http://192.168.1.123:8000/', //小葱
// baseURL: 'http://192.168.1.123:8000/', //小葱
// baseURL: 'http://120.224.103.84:9111/',
// baseURL: 'http://120.224.103.84:9111/',
baseURL
:
'
http://60.31.138.166:8000/
'
,
// baseURL: 'http://10.185.163.57:8000/',
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
timeout
:
30000
,
timeout
:
30000
,
})
})
...
...
src/views/Home.vue
View file @
5e042fbe
...
@@ -144,9 +144,7 @@ export default {
...
@@ -144,9 +144,7 @@ export default {
}
}
console
.
log
(
'
AsD
'
+
localStorage
.
getItem
(
'
token4dp
'
)
+
'
sVsf
'
)
console
.
log
(
'
AsD
'
+
localStorage
.
getItem
(
'
token4dp
'
)
+
'
sVsf
'
)
axios
({
axios
({
url
:
'
http://60.31.138.166:8000/auth/info
'
,
url
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/auth/info
'
,
// url: 'http://192.168.3.166:8000/auth/info',
method
:
'
get
'
,
method
:
'
get
'
,
headers
:
{
headers
:
{
Authorization
:
localStorage
.
getItem
(
'
token4dp
'
),
Authorization
:
localStorage
.
getItem
(
'
token4dp
'
),
...
...
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