Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-10 13:58:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
730582ce50766aeccfad346daa5763d974b69d46
730582ce
1 parent
b42d1692
π perf: δΌεδ½εηθ¨εε€ι»θΎ
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/client/videoDetailComment.vue
src/views/client/videoDetailComment.vue
View file @
730582c
...
...
@@ -27,7 +27,7 @@
<van-col offset="4" span="20">
<div v-if="item.total" class="reply-wrapper">
<template v-for="(reply, index) in item.reply_list" :key="index">
<p v-if="reply.reply_to && index <=
3
">
<p v-if="reply.reply_to && index <=
reply_limit
">
<span>{{ reply.name }}</span>
εε€
<span>@{{ reply.reply_to }}οΌ </span>
...
...
@@ -271,8 +271,9 @@ const submitCommentBox = (note) => {
_.each(commentList.value, comment => {
if (comment.id === commentId.value) {
// ει’ζ°ε’δΈζ‘οΌε ι€η¬¬δΈζ‘οΌδΏεε葨ζ°ιδΈε
comment.reply_list.shift()
comment.reply_list.push(res.data.data)
// εε€ζ°ιε€§δΊζ§εΆζ°ιζΆζζ§θ‘
comment.reply_list.length > reply_limit.value ? comment.reply_list.shift() : '';
comment.total = comment.total + 1
}
})
...
...
Please
register
or
login
to post a comment