commit | author | age | ||
efef1c | 1 | const TokenKey = 'App-Token' |
Z | 2 | |
3 | export function getToken() { | |
4 | return uni.getStorageSync(TokenKey) | |
5 | } | |
6 | ||
7 | export function setToken(token) { | |
8 | return uni.setStorageSync(TokenKey, token) | |
9 | } | |
10 | ||
11 | export function removeToken() { | |
12 | return uni.removeStorageSync(TokenKey) | |
13 | } |