update 完善了部分开发文档

This commit is contained in:
2021-04-28 17:08:06 +08:00
parent aac183749b
commit 8c429bcde6
23 changed files with 633 additions and 50 deletions

View File

@@ -70,21 +70,9 @@ const doLogout = () => {
})
}
const doCheck = () => {
return new Promise((resolve, reject) => {
api.checkLogin().then(({ result }) => {
setGlobal(result)
resolve()
}).catch(() => {
reject()
})
})
}
export {
doLogin,
doLogout,
doCheck,
setGlobal,
getGlobal