zhangwencui
7 天以前 e2b34a5655d31da73eaecc153715e2348c63d242
1
2
3
4
5
6
7
8
9
10
11
12
13
const TokenKey = 'App-Token'
 
export function getToken():string {
  return uni.getStorageSync(TokenKey)
}
 
export function setToken(token:string) {
  return uni.setStorageSync(TokenKey, token)
}
 
export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}