Merge branch 'master' of http://git.yoho.cn/fe/yoho-community-web
Showing
1 changed file
with
5 additions
and
4 deletions
@@ -93,10 +93,7 @@ | @@ -93,10 +93,7 @@ | ||
93 | try { | 93 | try { |
94 | this.$sdk.getUser().then(res => { | 94 | this.$sdk.getUser().then(res => { |
95 | if (get(res, 'uid') > 0) { | 95 | if (get(res, 'uid') > 0) { |
96 | - this.$route.params.id = res.uid; | ||
97 | - this.autherInfo = assign({}, this.autherInfo, { | ||
98 | - authorUid: res.uid | ||
99 | - }); | 96 | + this.init({id: res.uid}) |
100 | } else { | 97 | } else { |
101 | this.$sdk.goLogin(); | 98 | this.$sdk.goLogin(); |
102 | } | 99 | } |
@@ -197,6 +194,10 @@ | @@ -197,6 +194,10 @@ | ||
197 | authorType: params.type || 1 | 194 | authorType: params.type || 1 |
198 | }; | 195 | }; |
199 | 196 | ||
197 | + if (!params.id) { | ||
198 | + return; | ||
199 | + } | ||
200 | + | ||
200 | this.fetchBaseInfo(); | 201 | this.fetchBaseInfo(); |
201 | this.fetchList(); | 202 | this.fetchList(); |
202 | }, | 203 | }, |
-
Please register or login to post a comment