File tree 4 files changed +6
-6
lines changed
examples/sites/demos/pc/app/chart
packages/vue/src/chart/chart-core/src
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'
10
10
11
11
const options = ref({
12
12
key: '4b5f2cf2cba25200cc6b68c398468899',
13
- url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
13
+ url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
14
14
v: '1.4.3',
15
15
amap: {
16
16
resizeEnable: true,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export default {
15
15
return {
16
16
options: {
17
17
key: '4b5f2cf2cba25200cc6b68c398468899',
18
- url: 'https://webapi.amap.com/maps', // 谷歌地图接口的url地址
18
+ url: 'https://webapi.amap.com/maps', // 高德地图接口的url地址
19
19
v: '1.4.3',
20
20
amap: {
21
21
resizeEnable: true,
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export default {
14
14
data() {
15
15
return {
16
16
options: {
17
- key: '4b5f2cf2cba25200cc6b68c398468899 ',
18
- url: 'https://webapi.amap. com/maps ', // 谷歌地图接口的url地址
17
+ key: 'oBvDtR6nzWtVchkY4cLHtnah1VVZQKRK ',
18
+ url: 'https://api.map.baidu. com/api ', // 百度地图接口的url地址
19
19
v: '1.4.3',
20
20
bmap: {
21
21
resizeEnable: true,
Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ export default {
340
340
if ( Object . keys ( this . options ) . length === 0 ) {
341
341
this . updateChart ( data )
342
342
} else {
343
- this . option = JSON . parse ( JSON . stringify ( this . options ) )
343
+ this . option = cloneDeep ( this . options )
344
344
}
345
345
let { option } = this
346
346
clearTimeout ( this . timer )
@@ -527,7 +527,7 @@ export default {
527
527
if ( Object . keys ( this . options ) . length === 0 ) {
528
528
this . updateChart ( data )
529
529
} else {
530
- this . option = { ... this . options }
530
+ this . option = cloneDeep ( this . options )
531
531
}
532
532
let { option } = this
533
533
option = this . afterConfigFn ( option )
You can’t perform that action at this time.
0 commit comments