File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
examples/sites/demos/pc/app/chart
packages/vue/src/chart/chart-core/src Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { AutonaviMap as TinyAutonaviMap } from '@opentiny/vue'
1010
1111const options = ref({
1212 key: '4b5f2cf2cba25200cc6b68c398468899',
13- url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
13+ url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
1414 v: '1.4.3',
1515 amap: {
1616 resizeEnable: true,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
1515 return {
1616 options: {
1717 key: '4b5f2cf2cba25200cc6b68c398468899',
18- url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
18+ url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
1919 v: '1.4.3',
2020 amap: {
2121 resizeEnable: true,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export default {
1414 data() {
1515 return {
1616 options: {
17- key: '4b5f2cf2cba25200cc6b68c398468899 ',
18- url: 'https://webapi.amap. com/maps ', // 谷歌地图接口的url地址
17+ key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK ',
18+ url: 'https://api.map.baidu. com/api ', // 百度地图接口的url地址
1919 v: '1.4.3',
2020 bmap: {
2121 resizeEnable: true,
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ export default {
340340 if ( Object . keys ( this . options ) . length === 0 ) {
341341 this . updateChart ( data )
342342 } else {
343- this . option = JSON . parse ( JSON . stringify ( this . options ) )
343+ this . option = cloneDeep ( this . options )
344344 }
345345 let { option } = this
346346 clearTimeout ( this . timer )
@@ -527,7 +527,7 @@ export default {
527527 if ( Object . keys ( this . options ) . length === 0 ) {
528528 this . updateChart ( data )
529529 } else {
530- this . option = { ... this . options }
530+ this . option = cloneDeep ( this . options )
531531 }
532532 let { option } = this
533533 option = this . afterConfigFn ( option )
You can’t perform that action at this time.
0 commit comments