mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
添加修改头像功能
This commit is contained in:
@@ -19,6 +19,10 @@ export default defineStore('login', {
|
||||
setUserInfo(info: UserInfo) {
|
||||
this.userInfo = initUserInfo(info);
|
||||
},
|
||||
setHeadImage(headImage: (string & { downloadUri: string; filename: string }) | null) {
|
||||
if (this.userInfo == null) return;
|
||||
this.userInfo.headImageUrl = headImage;
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
// 开启持久存储
|
||||
|
||||
Reference in New Issue
Block a user