优化代码
This commit is contained in:
13
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
13
unpackage/dist/dev/mp-weixin/pages/Home/Home.js
vendored
@@ -94,8 +94,17 @@ const _sfc_main = {
|
||||
const now = Date.now();
|
||||
if (now - lastCleanTime < 7 * 24 * 3600 * 1e3)
|
||||
return;
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.setStorageSync("last_clean_time", now);
|
||||
components_request.request({
|
||||
url: "user/logout",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.info.id
|
||||
},
|
||||
userInfo: false
|
||||
}).then((res) => {
|
||||
common_vendor.index.clearStorage();
|
||||
common_vendor.index.setStorageSync("last_clean_time", now);
|
||||
});
|
||||
},
|
||||
//关闭弹窗(取消)
|
||||
closePopup() {
|
||||
|
||||
Reference in New Issue
Block a user