mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 02:15:54 +08:00
管理端和商家端userInfo字段名变更,管理端会员详情,他的积分字段调整
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
methods: {
|
||||
// 初始化数据
|
||||
init() {
|
||||
let v = JSON.parse(Cookies.get("userInfo"));
|
||||
let v = JSON.parse(Cookies.get("userInfoManager"));
|
||||
// 转换null为""
|
||||
for (let attr in v) {
|
||||
if (v[attr] == null) {
|
||||
@@ -112,7 +112,7 @@ export default {
|
||||
if (res.success) {
|
||||
this.$Message.success("保存成功");
|
||||
// 更新用户信息
|
||||
Cookies.set("userInfo", this.userForm);
|
||||
Cookies.set("userInfoManager", this.userForm);
|
||||
// 更新头像
|
||||
this.$store.commit("setAvatarPath", this.userForm.avatar);
|
||||
setTimeout(()=>{
|
||||
|
||||
Reference in New Issue
Block a user