13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
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)
|
|
} |