Compare commits
3 Commits
c5fdbd6a27
...
0e48245381
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e48245381 | ||
|
|
83a8974dc5 | ||
|
|
76443e343c |
@@ -5,5 +5,7 @@ const prodEnv = require('./prod.env')
|
|||||||
module.exports = merge(prodEnv, {
|
module.exports = merge(prodEnv, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
// BASE_API: '"http://127.0.0.1:48090"'
|
// BASE_API: '"http://127.0.0.1:48090"'
|
||||||
|
|
||||||
BASE_API: '"http://192.168.1.241:8080/prod-api"'
|
BASE_API: '"http://192.168.1.241:8080/prod-api"'
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { getToken } from '@/utils/auth'
|
|||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: process.env.BASE_API, // api 的 base_url
|
baseURL: process.env.BASE_API, // api 的 base_url
|
||||||
timeout: 200000 // 请求超时时间
|
timeout: 20000 // 请求超时时间
|
||||||
})
|
})
|
||||||
|
|
||||||
// request拦截器
|
// request拦截器
|
||||||
|
|||||||
@@ -146,19 +146,21 @@ export default {
|
|||||||
//获取url传参 ticket url
|
//获取url传参 ticket url
|
||||||
const ticket = this.$route.query.ticket;
|
const ticket = this.$route.query.ticket;
|
||||||
let token = getToken();
|
let token = getToken();
|
||||||
|
console.log(ticket);
|
||||||
|
console.log(token);
|
||||||
if (ticket == undefined && token == null) {
|
if (ticket == undefined && token == null) {
|
||||||
//跳转统一身份认证
|
//跳转统一身份认证
|
||||||
var isTs = true;
|
var isTs = true;
|
||||||
if (isTs) {
|
if (isTs) {
|
||||||
console.log(this.redirect);
|
window.location.href = 'http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A8080%2F%23%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||||
window.location.href =
|
// window.location.href = 'http://localhost:8099/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A9528%2F%23%2Flogin'+(this.redirect?'&ssUrl='+this.redirect:'');
|
||||||
"http://192.168.1.241/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2F192.168.1.241%3A8080%2F%23" + this.redirect;
|
|
||||||
// window.location.href = 'http://localhost:8099/login?redirect=/lig/oauth2/oauth2/application&appid=330b4ecb60c9a6802b957fe1e5a5ecd3&url=http%3A%2F%2Flocalhost%3A9528%2F%23'+this.redirect;
|
|
||||||
}
|
}
|
||||||
} else if (ticket != undefined && token == null) {
|
} else if (ticket != undefined && token == null) {
|
||||||
//请求登录
|
//请求登录
|
||||||
this.logincasapi();
|
this.logincasapi();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
|
|||||||
Reference in New Issue
Block a user