|
|
|
@ -1536,7 +1536,7 @@ export default {
|
|
|
|
onDocumentReplace (data) {
|
|
|
|
onDocumentReplace (data) {
|
|
|
|
const { replaceSchemaItem, schema, documents } = data
|
|
|
|
const { replaceSchemaItem, schema, documents } = data
|
|
|
|
|
|
|
|
|
|
|
|
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, schema[0])
|
|
|
|
this.template.schema.splice(this.template.schema.indexOf(replaceSchemaItem), 1, { ...replaceSchemaItem, ...schema[0] })
|
|
|
|
this.template.documents.push(...documents)
|
|
|
|
this.template.documents.push(...documents)
|
|
|
|
|
|
|
|
|
|
|
|
if (data.fields) {
|
|
|
|
if (data.fields) {
|
|
|
|
|