vue2-client 1.8.162 → 1.8.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -599,7 +599,7 @@ export default {
|
|
|
599
599
|
if (this.configData === undefined) {
|
|
600
600
|
console.error('未找到数据!')
|
|
601
601
|
} else {
|
|
602
|
-
this.originalConfig = Object.assign({}, this.
|
|
602
|
+
this.originalConfig = Object.assign({}, this.config)
|
|
603
603
|
this.originalConfig.data = JSON.parse(JSON.stringify(this.configData))
|
|
604
604
|
this.type = 'display'
|
|
605
605
|
this.onlyDisplay = true
|
|
@@ -613,9 +613,13 @@ export default {
|
|
|
613
613
|
beforeMount () {
|
|
614
614
|
if (this.displayOnly) {
|
|
615
615
|
this.onlyDisplay = true
|
|
616
|
+
this.type = 'display'
|
|
616
617
|
}
|
|
617
618
|
if (this.localConfig) {
|
|
618
619
|
if (this.localConfig.designMode === 'json') {
|
|
620
|
+
if (this.configData !== undefined) {
|
|
621
|
+
this.config.data = this.configData
|
|
622
|
+
}
|
|
619
623
|
this.jsonConfigInit()
|
|
620
624
|
} else {
|
|
621
625
|
this.config = this.localConfig
|
|
@@ -631,6 +635,9 @@ export default {
|
|
|
631
635
|
getConfigByName(this.configName, this.serverName, res => {
|
|
632
636
|
this.config = res
|
|
633
637
|
if (this.config.designMode === 'json') {
|
|
638
|
+
if (this.configData !== undefined) {
|
|
639
|
+
this.config.data = this.configData
|
|
640
|
+
}
|
|
634
641
|
this.jsonConfigInit()
|
|
635
642
|
} else {
|
|
636
643
|
if (this.configData !== undefined) {
|