Support cred auto-login.

This commit is contained in:
Yang Luo
2021-05-16 18:18:55 +08:00
parent 338c589e51
commit 18806f07a8
6 changed files with 55 additions and 23 deletions

View File

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