fix(测试跟踪): 用例评论编辑添加校验
--bug=1023172 --user=陈建星 【测试跟踪】功能用例-编辑用例-评论-点击编辑其它人的评论-可进入编辑模式 https://www.tapd.cn/55049933/s/1337265
This commit is contained in:
parent
4b153d57af
commit
0d119fd6c0
test-track/frontend/src/business/case/components/case
|
@ -83,6 +83,10 @@ export default {
|
||||||
return name.substring(0, 2).toUpperCase();
|
return name.substring(0, 2).toUpperCase();
|
||||||
},
|
},
|
||||||
openEdit() {
|
openEdit() {
|
||||||
|
if (getCurrentUser().id !== this.comment.author) {
|
||||||
|
this.$warning(this.$t("test_track.comment.cannot_edit"), false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.state = "EDIT";
|
this.state = "EDIT";
|
||||||
},
|
},
|
||||||
cancel(data) {
|
cancel(data) {
|
||||||
|
|
Loading…
Reference in New Issue