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

localStorage项判断

上级 ffd1c3d7
......@@ -156,7 +156,7 @@
}
else {
// 从local中获取该用户的openid和nickname
if (localStorage.getItem("openid")!="") {
if (localStorage.getItem("openid")) {
this.openid = localStorage.getItem("openid");
}
if (localStorage.getItem("nickname")) {
......
......@@ -161,7 +161,7 @@
}
else {
// 从local中获取该用户的openid和nickname
if (localStorage.getItem("openid")!="") {
if (localStorage.getItem("openid")) {
this.openid = localStorage.getItem("openid");
}
if (localStorage.getItem("nickname")) {
......
......@@ -159,7 +159,7 @@
}
else {
// 从local中获取该用户的openid和nickname
if (localStorage.getItem("openid")!="") {
if (localStorage.getItem("openid")) {
this.openid = localStorage.getItem("openid");
}
if (localStorage.getItem("nickname")) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册