Commit e66965e9 by 穆启卓

首页分享缺用户id

parent e269d641
...@@ -77,6 +77,17 @@ export default { ...@@ -77,6 +77,17 @@ export default {
this.getPageData(); this.getPageData();
this.getFollowInfo(); this.getFollowInfo();
}, },
mounted() {
if (window["userData"]) {
this.userData = window["userData"];
} else {
let localUserData = localStorage.getItem("walk_userData");
if (localUserData) {
window["userData"] = JSON.parse(localUserData);
this.userData = window["userData"];
}
}
},
methods: { methods: {
// 点击卡片整块的跳转 // 点击卡片整块的跳转
clickCard(item) { clickCard(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment