提交 ffd1c3d7 编写于 作者: laizhilong's avatar laizhilong

不需要的注释

上级 2d39b177
......@@ -149,7 +149,6 @@
if (!this.state) {
this.state = this.getUrlParam('state');
}
// alert("code:" + this.code + "\nstate:" + this.state);
// 获取失败,回到登录页
if (!this.code || !this.state) {
this.$message.error("钉钉授权,获取code失败");
......@@ -157,8 +156,6 @@
}
else {
// 从local中获取该用户的openid和nickname
// console.log("钉钉信息openid:" + localStorage.getItem("openid"));
// console.log("钉钉信息nickname:" + localStorage.getItem("nickname"));
if (localStorage.getItem("openid")!="") {
this.openid = localStorage.getItem("openid");
}
......
......@@ -144,7 +144,7 @@
* 挂载
*/
public mounted() {
let _this = this;
// 从url获取授权code和state
this.code = this.$route.query.code;
if (!this.code) {
......@@ -154,16 +154,13 @@
if (!this.state) {
this.state = this.getUrlParam('state');
}
// alert("code:" + this.wechatCode + "\nstate:" + this.wechatState);
// 获取失败,回到登录页
if (!this.code || !this.state) {
this.$message.error("微信授权,获取code失败");
this.$message.error("QQ授权,获取code失败");
this.goLogin();
}
else {
// 从local中获取该用户的openid和nickname
// console.log("QQ信息openid:" + localStorage.getItem("openid"));
// console.log("QQ信息nickname:" + localStorage.getItem("nickname"));
if (localStorage.getItem("openid")!="") {
this.openid = localStorage.getItem("openid");
}
......@@ -171,6 +168,7 @@
this.nickname = localStorage.getItem("nickname");
}
}
}
......
......@@ -159,8 +159,6 @@
}
else {
// 从local中获取该用户的openid和nickname
// console.log("微信信息openid:" + localStorage.getItem("openid"));
// console.log("微信信息nickname:" + localStorage.getItem("nickname"));
if (localStorage.getItem("openid")!="") {
this.openid = localStorage.getItem("openid");
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册