登录时增加用户id存储到本地

This commit is contained in:
尹吉欢
2018-05-07 16:22:40 +08:00
parent 9d143205c5
commit bac1db671e
7 changed files with 11 additions and 3 deletions
+1
View File
@@ -120,6 +120,7 @@ function logout() {
//plus.webview.getWebviewById('yfindex.html').reload();
localStorage.removeItem("user_token");
localStorage.removeItem("user_token_add_time");
localStorage.removeItem("user_id");
//退出登录之前loading下个人中心
if(plus.webview.getWebviewById('views/house/houseDetail.html')!= null) {
plus.webview.getWebviewById('views/house/houseDetail.html').reload();