...
|
...
|
@@ -103,10 +103,14 @@ |
|
|
|
|
|
try {
|
|
|
this.$sdk.getUser().then(res => {
|
|
|
this.$route.params.id = res.uid;
|
|
|
this.autherInfo = assign({}, this.autherInfo, {
|
|
|
authorUid: res.uid
|
|
|
});
|
|
|
if (get(res, 'uid') > 0) {
|
|
|
this.$route.params.id = res.uid;
|
|
|
this.autherInfo = assign({}, this.autherInfo, {
|
|
|
authorUid: res.uid
|
|
|
});
|
|
|
} else {
|
|
|
this.$sdk.goLogin();
|
|
|
}
|
|
|
});
|
|
|
} catch(e){
|
|
|
console.log(e);
|
...
|
...
|
|