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