Showing
1 changed file
with
11 additions
and
3 deletions
@@ -130,9 +130,17 @@ export default { | @@ -130,9 +130,17 @@ export default { | ||
130 | this.isLogin = true; | 130 | this.isLogin = true; |
131 | } | 131 | } |
132 | }, | 132 | }, |
133 | - gotoDetailPage(e) { | ||
134 | - console.log(e.currentTarget.dataset.id); | ||
135 | - this.$router.push('') | 133 | + gotoDetailPage(e) { // 跳转详情页 |
134 | + let articleId = e.currentTarget.dataset.id; | ||
135 | + | ||
136 | + if (articleId) { | ||
137 | + this.$router.push({ | ||
138 | + name: 'ArticleDetail', | ||
139 | + params: { | ||
140 | + articleId: 445 | ||
141 | + } | ||
142 | + }); | ||
143 | + } | ||
136 | } | 144 | } |
137 | } | 145 | } |
138 | }; | 146 | }; |
-
Please register or login to post a comment