fix:放开提交评论注释

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

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

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

Loading…
Cancel
Save