|
@@ -265,12 +265,13 @@ export default {
|
|
|
this.activeChild = userXx.user_id;
|
|
|
this.childId = userXx.user_role_id;
|
|
|
this.childName = userXx.user_realname;
|
|
|
- } else if (this.childData[0].user_id) {
|
|
|
+ } else if (this.childData?.[0]?.user_id) {
|
|
|
let userXx = this.childData[0];
|
|
|
- localStorage.setItem(
|
|
|
- "childInfo_" + this.userInfo.user_id,
|
|
|
- JSON.stringify(this.childData[0])
|
|
|
- );
|
|
|
+ // localStorage.setItem(
|
|
|
+ // "childInfo_" + this.userInfo.user_id,
|
|
|
+ // JSON.stringify(this.childData[0])
|
|
|
+ // );
|
|
|
+ setChild(item);
|
|
|
|
|
|
this.activeChild = userXx.user_id;
|
|
|
this.childId = userXx.user_role_id;
|