初始化

This commit is contained in:
2024-11-28 17:07:44 +08:00
parent 51f1443388
commit 1009f80c35
743 changed files with 86274 additions and 90 deletions

13
utils/auth.js Normal file
View File

@@ -0,0 +1,13 @@
const TokenKey = 'App-Token'
export function getToken() {
return uni.getStorageSync(TokenKey)
}
export function setToken(token) {
return uni.setStorageSync(TokenKey, token)
}
export function removeToken() {
return uni.removeStorageSync(TokenKey)
}