fix(测试跟踪): 用例评论编辑失败
--bug=1023667 --user=陈建星 【测试跟踪】用例详情页-评论Tab,编辑评论没有原地保存 https://www.tapd.cn/55049933/s/1341519
This commit is contained in:
parent
73af1062a7
commit
d916889ce7
|
@ -93,8 +93,8 @@ export default {
|
|||
this.formData.richText = data;
|
||||
this.state = "PREVIEW";
|
||||
},
|
||||
submit(data) {
|
||||
this.editComment();
|
||||
submit(description) {
|
||||
this.editComment(description);
|
||||
},
|
||||
deleteComment() {
|
||||
if (getCurrentUser().id !== this.comment.author) {
|
||||
|
@ -111,14 +111,15 @@ export default {
|
|||
this.$emit("refresh");
|
||||
});
|
||||
},
|
||||
editComment() {
|
||||
editComment(description) {
|
||||
this.$post(this.apiUrl + "/comment/edit", {
|
||||
id: this.comment.id,
|
||||
description: this.comment.description,
|
||||
description,
|
||||
}).then(() => {
|
||||
this.originDesc = this.comment.description;
|
||||
this.visible = false;
|
||||
this.$success(this.$t("commons.modify_success"), false);
|
||||
this.state = "PREVIEW";
|
||||
this.$emit("refresh");
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue