|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-06-25 15:29:43
|
|
|
|
* @Date: 2022-06-25 15:29:43
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-06-27 17:27:36
|
|
|
|
* @LastEditTime: 2022-06-28 22:09:20
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -84,12 +84,11 @@ export default {
|
|
|
|
}else if(this.type === COMMENT.TYPE.FOLLOW_COMMENT){
|
|
|
|
}else if(this.type === COMMENT.TYPE.FOLLOW_COMMENT){
|
|
|
|
data.originId = data.parentId = this.commentDetail.id;
|
|
|
|
data.originId = data.parentId = this.commentDetail.id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const result = data
|
|
|
|
const {error, result} = await ApiPostComment(data);
|
|
|
|
// const {error, result} = await ApiPostComment(data);
|
|
|
|
if(error){
|
|
|
|
// if(error){
|
|
|
|
this.$message.error(error.message);
|
|
|
|
// this.$message.error(error.message);
|
|
|
|
return false;
|
|
|
|
// return false;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
this.$emit('submit',result);
|
|
|
|
this.$emit('submit',result);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|