|
@@ -397,9 +397,10 @@ export default {
|
|
|
console.log(backurlValue)
|
|
|
console.log(res.data.token)
|
|
|
this.sendUrlServ()
|
|
|
+
|
|
|
//下面还有一个
|
|
|
//window.location.href = 'http://admindev.bjzxtw.org.cn/auth/back_login.php?backurl=' + backurlValue + '&token=' + res.data.token; //dev返回链接
|
|
|
- window.location.href = BASEURL.WebCloginUrl + '?backurl=' + backurlValue + '&token=' + res.data.token; //pre返回地址
|
|
|
+ window.location.href = BASEURL.webClogBackUrL + '?backurl=' + backurlValue + '&token=' + res.data.token; //pre返回地址
|
|
|
|
|
|
}else if(res.code!=0&&res.code!=200){
|
|
|
this.$message({
|
|
@@ -482,13 +483,13 @@ export default {
|
|
|
//登录成功通知后端 上面还有一个
|
|
|
sendUrlServ(){
|
|
|
//axios.get('http://admindev.bjzxtw.org.cn/auth/loginapi.php',{params: {
|
|
|
- axios.get(BASEURL.WebCloginUrl,{params: {
|
|
|
- token: this.$store.state.user.token
|
|
|
- }}).then(res => {
|
|
|
- console.log(res)
|
|
|
- }).catch(err => {
|
|
|
- console.log(err)
|
|
|
- });
|
|
|
+ // axios.get(BASEURL.WebCloginUrl,{params: {
|
|
|
+ // token: this.$store.state.user.token
|
|
|
+ // }}).then(res => {
|
|
|
+ // console.log(res)
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.log(err)
|
|
|
+ // });
|
|
|
|
|
|
// 新做的,待替换
|
|
|
// this.$store.dispatch('user/loginapi', {
|