parent
18d5f47c4b
commit
2105d16cba
|
@ -71,7 +71,11 @@ export default {
|
|||
this.currentScenario[this.prop] = this.innerTags;
|
||||
},
|
||||
'currentScenario.tags'() {
|
||||
if(Object.prototype.toString.call(this.currentScenario.tags)==="[object String]"){
|
||||
this.innerTags = JSON.parse(this.currentScenario.tags);
|
||||
}else{
|
||||
this.innerTags = this.currentScenario.tags
|
||||
}
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -252,7 +252,7 @@ export default {
|
|||
saveApi(data) {
|
||||
this.$emit("saveApi", data);
|
||||
if (data != null && data.tags != 'null' && data.tags != undefined) {
|
||||
if (Object.prototype.toString.call(data.tags).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'object') {
|
||||
if (Object.prototype.toString.call(data.tags)==="[object String]") {
|
||||
data.tags = JSON.parse(data.tags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue