登录记录缓存
This commit is contained in:
13
utils/loginInfo.js
Normal file
13
utils/loginInfo.js
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user