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
02009f37
Commit
02009f37
authored
Oct 30, 2024
by
Kimber
Browse files
Options
Browse Files
Download
Plain Diff
zhao
parents
a2a529f2
cc7526da
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
2 deletions
+31
-2
.env.production
.env.production
+4
-0
CommHeader.vue
src/components/comm/CommHeader.vue
+0
-1
request2.js
src/utils/request2.js
+4
-0
request5.js
src/utils/request5.js
+5
-0
Home.vue
src/views/Home.vue
+18
-1
No files found.
.env.production
View file @
02009f37
...
@@ -2,8 +2,12 @@ NODE_ENV = 'production'
...
@@ -2,8 +2,12 @@ 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'
<<<<<<< HEAD
# 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'
VUE_APP_LOCAL_API = 'http://60.31.138.166:8000'
=======
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production'
>>>>>>> cc7526dac422cc9d4b3d6ac0d53c3a0490cecfe2
outputDir = 'production'
outputDir = 'production'
src/components/comm/CommHeader.vue
View file @
02009f37
...
@@ -71,7 +71,6 @@ export default {
...
@@ -71,7 +71,6 @@ export default {
// window.open('http://Ndwq.jingkongyun.com/')
// window.open('http://Ndwq.jingkongyun.com/')
// window.open('http://192.168.3.226:8083/dashboard')
// window.open('http://192.168.3.226:8083/dashboard')
// window.open('http://120.224.103.84:8083/dashboard')
// window.open('http://120.224.103.84:8083/dashboard')
//window.open('http://10.185.163.57:8001/dashboard')
window
.
open
(
'
http://60.31.138.166:8001/dashboard
'
)
window
.
open
(
'
http://60.31.138.166:8001/dashboard
'
)
return
;
return
;
}
}
...
...
src/utils/request2.js
View file @
02009f37
...
@@ -8,8 +8,12 @@ const service = axios.create({
...
@@ -8,8 +8,12 @@ const service = axios.create({
// baseURL: 'http://192.168.1.123:8000/',
// baseURL: 'http://192.168.1.123:8000/',
//baseURL: 'http://192.168.3.188:8000/',
//baseURL: 'http://192.168.3.188:8000/',
// baseURL: 'http://120.224.103.84:9111/',
// baseURL: 'http://120.224.103.84:9111/',
<<<<<<<
HEAD
//baseURL: 'http://10.185.163.57:8000/',
//baseURL: 'http://10.185.163.57:8000/',
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
=======
baseURL
:
'
http://60.31.138.166:8000/
'
,
>>>>>>>
cc7526dac422cc9d4b3d6ac0d53c3a0490cecfe2
timeout
:
30000
,
timeout
:
30000
,
})
})
...
...
src/utils/request5.js
View file @
02009f37
...
@@ -6,8 +6,13 @@ const service = axios.create({
...
@@ -6,8 +6,13 @@ 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/',
<<<<<<<
HEAD
// baseURL: 'http://10.185.163.57:8000/',
// baseURL: 'http://10.185.163.57:8000/',
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
baseURL
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/
'
,
=======
baseURL
:
'
http://60.31.138.166:8000/
'
,
>>>>>>>
cc7526dac422cc9d4b3d6ac0d53c3a0490cecfe2
timeout
:
30000
,
timeout
:
30000
,
})
})
...
...
src/views/Home.vue
View file @
02009f37
...
@@ -134,15 +134,32 @@ export default {
...
@@ -134,15 +134,32 @@ export default {
},
},
methods
:
{
methods
:
{
getUserInfo
()
{
getUserInfo
()
{
/**
* 1、如果地址栏有token且为bear开头,则认为是正确token,进行本地存储
* 2、
*/
if
(
this
.
getParameter
(
'
token
'
)
&&
this
.
getParameter
(
'
token
'
).
indexOf
(
'
Bearer
'
)
>
-
1
){
// 本地存储token
localStorage
.
setItem
(
'
token4dp
'
,
decodeURIComponent
(
this
.
getParameter
(
'
token
'
)))
// console.log('AsD'+localStorage.getItem('token4dp')+'sVsf')
}
console
.
log
(
'
AsD
'
+
localStorage
.
getItem
(
'
token4dp
'
)
+
'
sVsf
'
)
axios
({
axios
({
<<<<<<<
HEAD
url
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/auth/info
'
,
url
:
process
.
env
.
VUE_APP_LOCAL_API
+
'
/auth/info
'
,
=======
url
:
'
http://60.31.138.166:8000/auth/info
'
,
>>>>>>>
cc7526dac422cc9d4b3d6ac0d53c3a0490cecfe2
method
:
'
get
'
,
method
:
'
get
'
,
headers
:
{
headers
:
{
Authorization
:
decodeURIComponent
(
this
.
getParameter
(
'
token
'
)
),
Authorization
:
localStorage
.
getItem
(
'
token4dp
'
),
},
},
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
// console.log('获取用户信息', res)
// console.log('获取用户信息', res)
// if(!localStorage.getItem('token4dp')){
// localStorage.setItem('token4dp', decodeURIComponent(this.getParameter('token')))
// }
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
// console.log('用户信息错误',err)
// console.log('用户信息错误',err)
...
...
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