优化代码

This commit is contained in:
pengxiaolong
2025-09-29 20:48:31 +08:00
parent 0a721e99f8
commit 0044f8f334
63 changed files with 667 additions and 137 deletions

View File

@@ -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() {