登录记录缓存

This commit is contained in:
2024-07-15 15:29:29 +08:00
parent 3ead0ef3be
commit 8618130792
3 changed files with 186 additions and 129 deletions

13
utils/loginInfo.js Normal file
View File

@@ -0,0 +1,13 @@
const key = '_LoginInfo'
export function getLoginInfo() {
return uni.getStorageSync(key)
}
export function setLoginInfo(data) {
return uni.setStorageSync(key, data)
}
export function removeLoginInfo() {
return uni.removeStorageSync(key)
}