|
@@ -176,6 +176,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { showToast } from "vant";
|
|
|
+import { setChild } from "~/store/child";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -283,10 +284,11 @@ export default {
|
|
|
this.childId = item.user_role_id;
|
|
|
this.childName = item.user_realname;
|
|
|
this.activeChild = item.user_id;
|
|
|
- localStorage.setItem(
|
|
|
- "childInfo_" + this.userInfo.user_id,
|
|
|
- JSON.stringify(item)
|
|
|
- );
|
|
|
+ // localStorage.setItem(
|
|
|
+ // "childInfo_" + this.userInfo.user_id,
|
|
|
+ // JSON.stringify(item)
|
|
|
+ // );
|
|
|
+ setChild(item);
|
|
|
},
|
|
|
submitDM() {
|
|
|
showToast("切换成功~");
|