fix:放开提交评论注释

feature/comment-0624-ch
ch 2 years ago
parent b81c463e9b
commit e771928e88

@ -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);
},

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-27 11:46:34
* @LastEditors: ch
* @LastEditTime: 2022-06-28 10:23:51
* @LastEditTime: 2022-06-28 22:07:23
* @Description: file content
-->
<template>
@ -89,7 +89,7 @@ export default {
if(this.list.findIndex(i => !i.id) > 0){
this.$message.success('评论成功~');
}else{
this.$router.replace('/account/comment/success');
// this.$router.replace('/account/comment/success');
}
},
}

Loading…
Cancel
Save