From ca62f5594cf4160e0f40ad291b413445ea9d148d Mon Sep 17 00:00:00 2001 From: asd Date: Fri, 29 Nov 2019 17:54:09 +0800 Subject: [PATCH] luyou1 --- src/IndexArticleDetail.vue | 2 +- src/PersonalHomepage.vue | 7 ++++--- src/components/PersonalAnswer.vue | 15 +++++++++++++-- src/router.js | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) 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 @@