Commit 13e76de0 by yanju

线上测试话题详情页跳转2

parent 9648e975
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<topic-card :activeRouteFunc="false" :info="topicCardInfo" style="border-radius: 4px;overflow: hidden"></topic-card> <topic-card :activeRouteFunc="false" :info="topicCardInfo" style="border-radius: 4px;overflow: hidden"></topic-card>
<div class="part1__bottom"> <div class="part1__bottom">
<div class="__left"> <div class="__left">
<nav-wrap <!--<nav-wrap-->
width="106px" <!--width="106px"-->
:list="list" <!--:list="list"-->
></nav-wrap> <!--&gt;</nav-wrap>-->
</div> </div>
<div class="__right"> <div class="__right">
<release-card></release-card> <release-card></release-card>
...@@ -122,17 +122,17 @@ ...@@ -122,17 +122,17 @@
} }
}, },
created() { created() {
console.log("详情页路由"+this.route) console.log("详情页路由"+this.$route.path);
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);
this.dataGetTopicInfo(id); // this.dataGetTopicInfo(id);
this.$router.replace({ // this.$router.replace({
path: path, // path: path,
query: { // query: {
id: '推荐' // id: '推荐'
} // }
}); // });
}, },
computed: { computed: {
labelTitle: function () { labelTitle: function () {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<p @click="test('/topic/detail/998f0198dad4199b0ec37336fbda8f87')">线上测试是否能跳到详情页1</p> <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/998f0198dad4199b0ec37336fbda8f87">线上测试是否能跳到详情页2</nuxt-link>
<nuxt-link tag="p" to="/topic/detail">线上测试是否能跳到详情页3</nuxt-link> <nuxt-link tag="p" to="/topic/detail">线上测试是否能跳到详情页3</nuxt-link>
<nuxt-link tag="p" to="/topic/detai">线上测试是否能跳到详情页4</nuxt-link>
</div> </div>
<div class="topic-container__center"> <div class="topic-container__center">
<card-container <card-container
......
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