mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-29 18:48:13 +08:00
fix(测试跟踪): 用例评论编辑添加校验
--bug=1023172 --user=陈建星 【测试跟踪】功能用例-编辑用例-评论-点击编辑其它人的评论-可进入编辑模式 https://www.tapd.cn/55049933/s/1337265
This commit is contained in:
parent
4b153d57af
commit
0d119fd6c0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user