2024-08-20 20:02:05 +08:00
|
|
|
const TokenKey = 'App-Token'
|
2024-08-22 20:54:43 +08:00
|
|
|
const TenantIdKey = 'TENANT_ID'
|
2024-08-20 20:02:05 +08:00
|
|
|
export function getToken() {
|
|
|
|
return uni.getStorageSync(TokenKey)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function setToken(token) {
|
|
|
|
return uni.setStorageSync(TokenKey, token)
|
|
|
|
}
|
|
|
|
|
|
|
|
export function removeToken() {
|
|
|
|
return uni.removeStorageSync(TokenKey)
|
|
|
|
}
|
2024-08-22 20:54:43 +08:00
|
|
|
|
|
|
|
export function setTenantId(TenantId) {
|
|
|
|
return uni.setStorageSync(TenantIdKey, TenantId);
|
|
|
|
}
|
|
|
|
export function getTenantId(){
|
|
|
|
return uni.getStorageSync(TenantIdKey)
|
|
|
|
}
|