源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import appConfig from '@/config/appConfig.js'
import storageManage from '@/util/storageManage.js';
import { $userInfo, $logout } from '@/http/apiManager.js'
let USER_INFO = null
const user = {
// 退出登录清空token
logout() {
// 退出登录接口
$logout()
// 清空用户信息
USER_INFO = null
// 清空token
storageManage.token('', true)
uni.reLaunch({
url: '/pages/login/login'
})
}
}
function reqUserInfo() {
return $userInfo()
}
export default user