fix(测试跟踪): 功能用例多次点击删除评论按钮报错

--bug=1013667 --user=李玉号 【测试跟踪】功能用例 删除评论 ,多次点击删除 按钮 页面会报错
https://www.tapd.cn/55049933/s/1170473
This commit is contained in:
shiziyuan9527 2022-05-31 18:08:44 +08:00 committed by shiziyuan9527
parent a5664441f4
commit 3225aad693
5 changed files with 5 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public class TestCaseCommentService {
private void checkCommentOwner(String commentId) {
TestCaseComment comment = testCaseCommentMapper.selectByPrimaryKey(commentId);
if (comment == null) {
MSException.throwException("The requested resource does not exist.");
MSException.throwException(Translator.get("resource_not_exist"));
}
if (!StringUtils.equals(comment.getAuthor(), SessionUtils.getUser().getId())) {
MSException.throwException(Translator.get("check_owner_comment"));

View File

@ -11,6 +11,7 @@ start_engine_fail=Start fail
upload_fail=Upload fail
invalid_parameter=Invalid parameter!
name_already_exists=Name already exists
resource_not_exist=The resource does not exist or has been deleted
#user related
user_email_already_exists=User email already exists
user_id_is_null=User ID cannot be null

View File

@ -10,6 +10,7 @@ start_engine_fail=启动失败
upload_fail=文件上传失败
invalid_parameter=非法的参数
name_already_exists=该名称已经存在
resource_not_exist=资源不存在或已删除
#user related
user_email_already_exists=用户邮箱已存在
user_id_is_null=用户ID不能为空

View File

@ -10,6 +10,7 @@ start_engine_fail=啟動失敗
upload_fail=文件上傳失敗
invalid_parameter=非法的參數
name_already_exists=該名稱已經存在
resource_not_exist=資源不存在或已刪除
#user related
user_email_already_exists=用戶郵箱已存在
user_id_is_null=用戶ID不能為空

View File

@ -20,7 +20,7 @@
</span>
<span class="comment-delete">
<el-link icon="el-icon-edit" style="font-size: 9px;margin-right: 6px;" @click="openEdit" :disabled="readOnly"/>
<el-link icon="el-icon-close" v-prevent-link-re-click @click="deleteComment" :disabled="readOnly"/>
<el-link icon="el-icon-close" v-prevent-link-re-click="1300" @click="deleteComment" :disabled="readOnly"/>
</span>
<br/>