fix(接口自动化): 初始化TAG问题修复

This commit is contained in:
fit2-zhao 2021-01-21 12:18:54 +08:00
parent 0ca5ae9565
commit feeb44155b
1 changed files with 6 additions and 1 deletions

View File

@ -41,10 +41,15 @@
},
size: {type: String, default: "small"}
},
created() {
if (!this.currentScenario.tags) {
this.currentScenario.tags = [];
}
},
data() {
return {
newTag: '',
innerTags: [...this.currentScenario.tags]
innerTags: this.currentScenario.tags ? [...this.currentScenario.tags] : []
}
},
watch: {