parent
88dcb24997
commit
958bee26bd
|
@ -71,7 +71,11 @@ export default {
|
||||||
this.currentScenario[this.prop] = this.innerTags;
|
this.currentScenario[this.prop] = this.innerTags;
|
||||||
},
|
},
|
||||||
'currentScenario.tags'() {
|
'currentScenario.tags'() {
|
||||||
this.innerTags = this.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: {
|
methods: {
|
||||||
|
|
|
@ -252,7 +252,7 @@ export default {
|
||||||
saveApi(data) {
|
saveApi(data) {
|
||||||
this.$emit("saveApi", data);
|
this.$emit("saveApi", data);
|
||||||
if (data != null && data.tags != 'null' && data.tags != undefined) {
|
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);
|
data.tags = JSON.parse(data.tags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue