提交 0b0e8f69 编写于 作者: C chenjianxing

fix 测试步骤长度限制

上级 f456f9a8
......@@ -315,7 +315,8 @@
Object.assign(param, this.form);
for (let i = 0; i < param.steps.length; i++){
if (param.steps[i].desc.length > 300 || param.steps[i].result.length > 300) {
if ((param.steps[i].desc && param.steps[i].desc.length > 300) ||
(param.steps[i].result && param.steps[i].result.length > 300)) {
this.$warning(this.$t('test_track.case.step_desc') + ","
+ this.$t('test_track.case.expected_results') + this.$t('test_track.length_less_than') + '300');
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册