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 @@
{{operation}}
{{day}}
@@ -33,6 +33,17 @@ export default { data() { return {}; }, - props:['operation','day','title'] + props:['operation','day','title',"types","id"], + methods:{ + tab(){ + window.console.log(this.types,"llk") + if(this.types=="1"){ + this.$router.push({ + path: '/sign' + }); + window.console.log( this.$router) + } + } + } }; \ No newline at end of file diff --git a/src/router.js b/src/router.js index 80e3dac..1cffe1e 100644 --- a/src/router.js +++ b/src/router.js @@ -20,7 +20,7 @@ import ArticleDetail from "./articledetail" const router=new Router({ routes: [ { - path: '/', + path: '/articledetail', component: ArticleDetail }, {