fix(测试跟踪): 用例评论编辑添加校验

--bug=1023172 --user=陈建星 【测试跟踪】功能用例-编辑用例-评论-点击编辑其它人的评论-可进入编辑模式 https://www.tapd.cn/55049933/s/1337265
This commit is contained in:
chenjianxing 2023-02-18 21:28:52 +08:00 committed by jianxing
parent 4b153d57af
commit 0d119fd6c0
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ export default {
return name.substring(0, 2).toUpperCase();
},
openEdit() {
if (getCurrentUser().id !== this.comment.author) {
this.$warning(this.$t("test_track.comment.cannot_edit"), false);
return;
}
this.state = "EDIT";
},
cancel(data) {