diff --git a/src/IndexArticleDetail.vue b/src/IndexArticleDetail.vue index 7efadae..4a71bac 100644 --- a/src/IndexArticleDetail.vue +++ b/src/IndexArticleDetail.vue @@ -139,7 +139,7 @@ this.pinglu(this.pid); .post("http://lawpro.earnest.pro/api/login_main/mainDetails", { token: localStorage.getItem("token"), type: 2, - id: 17 + id: this. $route.query.id }) .then(res => { // window.console.log(res) diff --git a/src/PersonalHomepage.vue b/src/PersonalHomepage.vue index 1da58e8..9585b1e 100644 --- a/src/PersonalHomepage.vue +++ b/src/PersonalHomepage.vue @@ -27,10 +27,10 @@
- + - - + +
@@ -187,6 +187,7 @@ export default { } }, mounted(){ + this.axios.post('http://lawpro.earnest.pro/api/login_main/getUserDetails',{ token:localStorage.getItem("token") }).then((res)=>{ diff --git a/src/components/PersonalAnswer.vue b/src/components/PersonalAnswer.vue index d2464e0..6e3856b 100644 --- a/src/components/PersonalAnswer.vue +++ b/src/components/PersonalAnswer.vue @@ -1,5 +1,5 @@