You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const TOKEN_KEY = "token"; |
|
|
|
export function setToken(token) { |
|
uni.setStorageSync(TOKEN_KEY, token); |
|
} |
|
export function getToken() { |
|
return uni.getStorageSync(TOKEN_KEY); |
|
} |
|
|
|
export function clearToken() { |
|
uni.removeStorageSync(TOKEN_KEY); |
|
} |