Support auto-login.

This commit is contained in:
Yang Luo
2021-03-28 16:35:59 +08:00
parent 2029a28d7b
commit f5ceae901b
9 changed files with 125 additions and 18 deletions

View File

@ -65,7 +65,7 @@ export function deleteUser(user) {
export function uploadAvatar(avatar) {
let account;
AuthBackend.getAccount().then((res) => {
AuthBackend.getAccount(null).then((res) => {
account = Setting.parseJson(res.data);
let formData = new FormData();
formData.append("avatarfile", avatar);