Commit cc7526da authored by xinzhedeai's avatar xinzhedeai

大屏登录 登录访问ip也可正常访问 内网改为外网

parent 25c666a4
......@@ -2,6 +2,6 @@ NODE_ENV = '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://120.224.103.84:9111/production'
VUE_APP_BASE_API = 'http://10.185.163.57:8000/production'
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production'
outputDir = 'production'
......@@ -71,7 +71,7 @@ export default {
// window.open('http://Ndwq.jingkongyun.com/')
// window.open('http://192.168.3.226: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')
return;
}
this.$store.commit("SET_IS_LEFT", false);
......
......@@ -8,7 +8,7 @@ const service = axios.create({
// baseURL: 'http://192.168.1.123:8000/',
//baseURL: 'http://192.168.3.188:8000/',
// baseURL: 'http://120.224.103.84:9111/',
baseURL: 'http://10.185.163.57:8000/',
baseURL: 'http://60.31.138.166:8000/',
timeout: 30000,
})
......
......@@ -6,7 +6,7 @@ const service = axios.create({
// baseURL: 'http://192.168.3.216:8000/', // 大龙
// baseURL: 'http://192.168.1.123:8000/', //小葱
// baseURL: 'http://120.224.103.84:9111/',
baseURL: 'http://10.185.163.57:8000/',
baseURL: 'http://60.31.138.166:8000/',
timeout: 30000,
......
......@@ -134,19 +134,32 @@ export default {
},
methods: {
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({
url: 'http://10.185.163.57:8000/auth/info',
url: 'http://60.31.138.166:8000/auth/info',
method: 'get',
headers: {
Authorization: decodeURIComponent(this.getParameter('token')),
Authorization: localStorage.getItem('token4dp'),
},
})
.then(res => {
// console.log('获取用户信息', res)
// if(!localStorage.getItem('token4dp')){
// localStorage.setItem('token4dp', decodeURIComponent(this.getParameter('token')))
// }
})
.catch(err => {
// console.log('用户信息错误',err)
location.href = 'http://10.185.163.57:8001/login?from=daping'
location.href = 'http://60.31.138.166:8001/login?from=daping'
})
},
onRightImg() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment