|
@@ -18,6 +18,7 @@ export default {
|
|
|
created() {
|
|
|
// console.log('this.$route', this.$route)
|
|
|
// console.log('window.location.href', window.location.href)
|
|
|
+ window.localStorage.clear()
|
|
|
// 第三方平台登录
|
|
|
this.getLoginByToken()
|
|
|
},
|
|
@@ -26,8 +27,8 @@ export default {
|
|
|
getLoginByToken() {
|
|
|
// 获取地址栏中的token
|
|
|
var token = this.$route.query
|
|
|
- console.log('token===', token)
|
|
|
- console.log('loginid===', token.loginid)
|
|
|
+ // console.log('token===', token)
|
|
|
+ // console.log('loginid===', token.loginid)
|
|
|
// 调用登录的接口
|
|
|
if (token == '' || token == undefined || token == null) {
|
|
|
// 无token,跳转到登录页面
|