关闭输入框内容
parent
2abbfe9b9f
commit
0de2f27018
|
|
@ -899,6 +899,7 @@
|
||||||
// 评论滚动事件,记录滚动位置(带防抖)
|
// 评论滚动事件,记录滚动位置(带防抖)
|
||||||
handle_comment_scroll(e) {
|
handle_comment_scroll(e) {
|
||||||
try {
|
try {
|
||||||
|
this.active_dropdown_id = null;
|
||||||
// 清除之前的防抖定时器
|
// 清除之前的防抖定时器
|
||||||
if (this.comment_scroll_debounce_timer) {
|
if (this.comment_scroll_debounce_timer) {
|
||||||
clearTimeout(this.comment_scroll_debounce_timer);
|
clearTimeout(this.comment_scroll_debounce_timer);
|
||||||
|
|
@ -1039,6 +1040,7 @@
|
||||||
// 评论
|
// 评论
|
||||||
send_comment() {
|
send_comment() {
|
||||||
try {
|
try {
|
||||||
|
this.active_dropdown_id = null;
|
||||||
let comment_text = this.comment_input_value;
|
let comment_text = this.comment_input_value;
|
||||||
if (!comment_text.trim()) return;
|
if (!comment_text.trim()) return;
|
||||||
|
|
||||||
|
|
@ -1118,7 +1120,7 @@
|
||||||
// 展开子评论
|
// 展开子评论
|
||||||
open_sub_comment(id, is_level) {
|
open_sub_comment(id, is_level) {
|
||||||
try {
|
try {
|
||||||
console.log(id);
|
this.active_dropdown_id = null;
|
||||||
const comment = this.active_comments.find(item => item.id == id);
|
const comment = this.active_comments.find(item => item.id == id);
|
||||||
if (comment) {
|
if (comment) {
|
||||||
comment.show_sub_comment = true;
|
comment.show_sub_comment = true;
|
||||||
|
|
@ -1164,6 +1166,7 @@
|
||||||
// 收起子评论
|
// 收起子评论
|
||||||
close_sub_comment(id) {
|
close_sub_comment(id) {
|
||||||
try {
|
try {
|
||||||
|
this.active_dropdown_id = null;
|
||||||
const comment = this.active_comments.find(item => item.id == id);
|
const comment = this.active_comments.find(item => item.id == id);
|
||||||
if (comment) {
|
if (comment) {
|
||||||
comment.show_sub_comment = false;
|
comment.show_sub_comment = false;
|
||||||
|
|
@ -1302,7 +1305,8 @@
|
||||||
},
|
},
|
||||||
// 删除回复评论数据
|
// 删除回复评论数据
|
||||||
comment_data_delete() {
|
comment_data_delete() {
|
||||||
try {
|
try {
|
||||||
|
this.active_dropdown_id = null;
|
||||||
this.comments_reply_data = {};
|
this.comments_reply_data = {};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('comment_data_delete error:', error);
|
console.error('comment_data_delete error:', error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue