fix(测试跟踪): 脑图保存报错后一直loading

--bug=1022355 --user=陈建星 【测试跟踪】github#21531,V2.6 功能测试-脑图创建名称同样的模块,页面会卡 https://www.tapd.cn/55049933/s/1340346
This commit is contained in:
chenjianxing 2023-02-22 10:37:42 +08:00 committed by CaptainB
parent de86fe7ad0
commit a304d2c0ec
3 changed files with 7 additions and 3 deletions

View File

@ -96,6 +96,7 @@ public class TestCaseNodeService extends NodeTreeService<TestCaseNodeDTO> {
throw new RuntimeException(Translator.get("test_case_node_level_tip") throw new RuntimeException(Translator.get("test_case_node_level_tip")
+ TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level")); + TestCaseConstants.MAX_NODE_DEPTH + Translator.get("test_case_node_level"));
} }
this.checkTestCaseNodeExist(node);
} }
private void checkTestCaseNodeExist(TestCaseNode node) { private void checkTestCaseNodeExist(TestCaseNode node) {

View File

@ -339,7 +339,10 @@ export default {
if (callback && callback instanceof Function) { if (callback && callback instanceof Function) {
callback(); callback();
} }
}); })
.catch(() => {
this.result.loading = false;
});
}, },
buildSaveParam(root, parent, preNode, nextNode) { buildSaveParam(root, parent, preNode, nextNode) {
let data = root.data; let data = root.data;

View File

@ -34,7 +34,7 @@
<div class="bar-item click-item" <div class="bar-item click-item"
@click="handleNext"> @click="handleNext">
<span> <span>
{{ $t("case.previous_public_case") }} {{ $t('case.next_public_case') }}
</span> </span>
<i class="el-icon-arrow-right"/> <i class="el-icon-arrow-right"/>
</div> </div>
@ -43,7 +43,7 @@
@click="handlePre"> @click="handlePre">
<i class="el-icon-arrow-left"/> <i class="el-icon-arrow-left"/>
<span> <span>
{{ $t('case.next_public_case') }} {{ $t("case.previous_public_case") }}
</span> </span>
</div> </div>