Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
b4d4c0b1
Commit
b4d4c0b1
authored
Mar 05, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
814270b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
articleDetail.vue
pagesArticle/articleDetail.vue
+0
-3
No files found.
pagesArticle/articleDetail.vue
View file @
b4d4c0b1
...
@@ -157,11 +157,9 @@ export default{
...
@@ -157,11 +157,9 @@ export default{
//设置上级评论id 加这个逻辑是为了保证永远只有两层结构
//设置上级评论id 加这个逻辑是为了保证永远只有两层结构
if
(
value
.
parentId
==
null
){
if
(
value
.
parentId
==
null
){
//点击的第一层评论
//点击的第一层评论
this
.
parentId
=
value
.
businessId
this
.
commentId
=
value
.
businessId
this
.
commentId
=
value
.
businessId
}
else
{
}
else
{
//点击的第二层评论
//点击的第二层评论
this
.
parentId
=
value
.
parentId
this
.
commentId
=
value
.
businessId
this
.
commentId
=
value
.
businessId
}
}
},
},
...
@@ -257,7 +255,6 @@ export default{
...
@@ -257,7 +255,6 @@ export default{
const
params
=
{
const
params
=
{
articleId
:
this
.
articleInfo
.
businessId
,
//动态id
articleId
:
this
.
articleInfo
.
businessId
,
//动态id
commentContent
:
value
,
//评论内容
commentContent
:
value
,
//评论内容
parentId
:
this
.
parentId
,
//上级评论ID
commentId
:
this
.
commentId
commentId
:
this
.
commentId
}
}
comment
(
params
).
then
(
res
=>
{
comment
(
params
).
then
(
res
=>
{
...
...
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