|
@@ -381,7 +381,9 @@ export default {
|
|
console.log(backurlValue)
|
|
console.log(backurlValue)
|
|
console.log(res.data.token)
|
|
console.log(res.data.token)
|
|
this.sendUrlServ()
|
|
this.sendUrlServ()
|
|
- window.location.href = 'http://admindev.bjzxtw.org.cn/auth/back_login.php?backurl=' + backurlValue + '&token=' + res.data.token;
|
|
|
|
|
|
+ //下面还有一个
|
|
|
|
+ //window.location.href = 'http://admindev.bjzxtw.org.cn/auth/back_login.php?backurl=' + backurlValue + '&token=' + res.data.token; //dev返回链接
|
|
|
|
+ window.location.href = 'http://adminpre.bjzxtw.org.cn/auth/back_login.php?backurl=' + backurlValue + '&token=' + res.data.token; //pre返回地址
|
|
|
|
|
|
}else if(res.code!=0&&res.code!=200){
|
|
}else if(res.code!=0&&res.code!=200){
|
|
this.$message({
|
|
this.$message({
|
|
@@ -456,9 +458,10 @@ export default {
|
|
this.$message.error("无法返回原网站,请检查登录地址链接!")
|
|
this.$message.error("无法返回原网站,请检查登录地址链接!")
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //登录成功通知后端
|
|
|
|
|
|
+ //登录成功通知后端 上面还有一个
|
|
sendUrlServ(){
|
|
sendUrlServ(){
|
|
- axios.get('http://admindev.bjzxtw.org.cn/auth/loginapi.php',{params: {
|
|
|
|
|
|
+ //axios.get('http://admindev.bjzxtw.org.cn/auth/loginapi.php',{params: {
|
|
|
|
+ axios.get('http://adminpre.bjzxtw.org.cn/auth/loginapi.php',{params: {
|
|
token: this.$store.state.user.token
|
|
token: this.$store.state.user.token
|
|
}}).then(res => {
|
|
}}).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|