Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
515e30b2
Commit
515e30b2
authored
Feb 08, 2020
by
yanju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题详情页数据恢复
parent
13e76de0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
23 deletions
+14
-23
pages/topic/detail/_id.vue
+14
-15
pages/topic/index.vue
+0
-8
No files found.
pages/topic/detail/_id.vue
View file @
515e30b2
...
@@ -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>
--
>
></nav-wrap
>
</div>
</div>
<div
class=
"__right"
>
<div
class=
"__right"
>
<release-card></release-card>
<release-card></release-card>
...
@@ -122,17 +122,16 @@
...
@@ -122,17 +122,16 @@
}
}
},
},
created
()
{
created
()
{
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
()
{
...
...
pages/topic/index.vue
View file @
515e30b2
...
@@ -6,10 +6,6 @@
...
@@ -6,10 +6,6 @@
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>
<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
...
@@ -92,10 +88,6 @@ export default {
...
@@ -92,10 +88,6 @@ export default {
},
},
methods
:{
methods
:{
test
(
r
){
this
.
$router
.
push
(
r
);
},
dataGetTopicList
(
currentPage
){
dataGetTopicList
(
currentPage
){
this
.
$axios
.
$get
(
config
.
api
.
get
.
Topic
.
list
,{
this
.
$axios
.
$get
(
config
.
api
.
get
.
Topic
.
list
,{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment