Commit bf0924f8 authored by 黎博's avatar 黎博

修复前置条件不能新增行

parent 6b8ff550
...@@ -9,7 +9,7 @@ module.exports = merge(prodEnv, { ...@@ -9,7 +9,7 @@ module.exports = merge(prodEnv, {
TESTDATA_API: '"//testdata.liangkebang.com"', TESTDATA_API: '"//testdata.liangkebang.com"',
// HOLMES: '"//localhost:8084"', // HOLMES: '"//localhost:8084"',
QA_PLATFORM: '"//qa-platform-fe.liangkebang.net/"', QA_PLATFORM: '"//qa-platform-fe.liangkebang.net/"',
HOLMES: '"//holmes-fe.liangkebang.net/"', HOLMES: '"//holmes-yxm.liangkebang.net/"',
QA_API: "//qaapi.liangkebang.com/", QA_API: "//qaapi.liangkebang.com/",
}) })
...@@ -561,9 +561,14 @@ export default { ...@@ -561,9 +561,14 @@ export default {
}) })
} }
// 返回断言 // 返回断言
this.assertionList = JSON.parse(row.validate) if (JSON.parse(row.validate) !== null) {
this.assertionList = JSON.parse(row.validate)
}
// 前置条件 // 前置条件
if (row.preAction.length !== 0) { // if (row.preAction.length !== 0) {
// this.preActionList = JSON.parse(row.preAction)
// }
if (JSON.parse(row.preAction) !== null) {
this.preActionList = JSON.parse(row.preAction) this.preActionList = JSON.parse(row.preAction)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment