Commit b9218d04 by libai

测试

parent 15a155d7
Showing with 2 additions and 1 deletions
...@@ -135,7 +135,7 @@ function loginGo(){ ...@@ -135,7 +135,7 @@ function loginGo(){
}); });
google.accounts.id.renderButton( google.accounts.id.renderButton(
document.getElementById("buttonDiv"), document.getElementById("buttonDiv"),
{ theme: "outline", size: "large", } // customization attributes { theme: "outline", size: "390px", } // customization attributes
); );
google.accounts.id.prompt(); // also display the One Tap dialog google.accounts.id.prompt(); // also display the One Tap dialog
} }
...@@ -187,6 +187,7 @@ function loginGo(){ ...@@ -187,6 +187,7 @@ function loginGo(){
layer.msg(data.msg) layer.msg(data.msg)
window.localStorage.removeItem("uid") window.localStorage.removeItem("uid")
window.localStorage.removeItem("token") window.localStorage.removeItem("token")
google.accounts.id.disableAutoSelect();
$(".nav-login-btn").show() $(".nav-login-btn").show()
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment