Commit 9648e975 by yanju

线上测试话题详情页跳转

parent bd13cac3
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
} }
}, },
created() { created() {
console.log("详情页路由"+this.route)
let path = this.$route.path; let path = this.$route.path;
let index = path.lastIndexOf('/'); let index = path.lastIndexOf('/');
let id = path.substring(index+1); let id = path.substring(index+1);
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
width="106px" width="106px"
:list="list" :list="list"
></nav-wrap> ></nav-wrap>
<p @click="test('/topic/detail/998f0198dad4199b0ec37336fbda8f87')">线上测试是否能跳到详情页1</p>
<nuxt-link tag="p" to="/topic/detail/998f0198dad4199b0ec37336fbda8f87">线上测试是否能跳到详情页2</nuxt-link>
<nuxt-link tag="p" to="/topic/detail">线上测试是否能跳到详情页3</nuxt-link>
</div> </div>
<div class="topic-container__center"> <div class="topic-container__center">
<card-container <card-container
...@@ -88,6 +91,9 @@ export default { ...@@ -88,6 +91,9 @@ export default {
}, },
methods:{ methods:{
test(r){
this.$router.push(r);
},
dataGetTopicList(currentPage){ dataGetTopicList(currentPage){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment