新增:新增上传头像 API,采用本地存储方式存储头像

This commit is contained in:
2023-01-05 22:32:23 +08:00
parent e77c77419b
commit 5252c54c48
54 changed files with 931 additions and 937 deletions

View File

@@ -75,7 +75,7 @@ const useLoginStore = defineStore('user', {
},
// 获取用户信息
async info() {
async getInfo() {
const res = await getUserInfo();
this.setInfo(res.data);
},