diff --git a/examples/sites/demos/pc/app/chart/amap/base-composition-api.vue b/examples/sites/demos/pc/app/chart/amap/base-composition-api.vue index 0d8b1843a3..eac3646f8c 100644 --- a/examples/sites/demos/pc/app/chart/amap/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/amap/base-composition-api.vue @@ -10,7 +10,7 @@ import { AutonaviMap as TinyAutonaviMap } from '@opentiny/vue' const options = ref({ key: '4b5f2cf2cba25200cc6b68c398468899', - url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址 + url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址 v: '1.4.3', amap: { resizeEnable: true, diff --git a/examples/sites/demos/pc/app/chart/amap/base.vue b/examples/sites/demos/pc/app/chart/amap/base.vue index 3fd3543e61..241eb15830 100644 --- a/examples/sites/demos/pc/app/chart/amap/base.vue +++ b/examples/sites/demos/pc/app/chart/amap/base.vue @@ -15,7 +15,7 @@ export default { return { options: { key: '4b5f2cf2cba25200cc6b68c398468899', - url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址 + url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址 v: '1.4.3', amap: { resizeEnable: true, diff --git a/examples/sites/demos/pc/app/chart/bmap/base.vue b/examples/sites/demos/pc/app/chart/bmap/base.vue index c1b33108b8..2e5dadaebb 100644 --- a/examples/sites/demos/pc/app/chart/bmap/base.vue +++ b/examples/sites/demos/pc/app/chart/bmap/base.vue @@ -14,8 +14,8 @@ export default { data() { return { options: { - key: '4b5f2cf2cba25200cc6b68c398468899', - url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址 + key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK', + url: 'https://api.map.baidu.com/api', // 百度地图接口的url地址 v: '1.4.3', bmap: { resizeEnable: true, diff --git a/packages/vue/src/chart/chart-core/src/chart-core.ts b/packages/vue/src/chart/chart-core/src/chart-core.ts index e6f113850b..ad3a398de1 100644 --- a/packages/vue/src/chart/chart-core/src/chart-core.ts +++ b/packages/vue/src/chart/chart-core/src/chart-core.ts @@ -340,7 +340,7 @@ export default { if (Object.keys(this.options).length === 0) { this.updateChart(data) } else { - this.option = JSON.parse(JSON.stringify(this.options)) + this.option = cloneDeep(this.options) } let { option } = this clearTimeout(this.timer) @@ -527,7 +527,7 @@ export default { if (Object.keys(this.options).length === 0) { this.updateChart(data) } else { - this.option = { ...this.options } + this.option = cloneDeep(this.options) } let { option } = this option = this.afterConfigFn(option)