代码:
this.iconFlatArr = {};
vm.$set(this.nameList,'cityName',[]);
vm.$set(this.nameList,'cityCode',[]);
let data = this.configArr;
let tmpCenter = data.config[0].center.split(',');
this.center = {lng:Number(tmpCenter[0]),lat:Number(tmpCenter[1])}
this.city = data.config[0].name.substr(0,3);
for (let i = 0; i < data.city.length; i++) {
// 赋值给对象
vm.$set(this.iconFlatArr,data.city[i].name,0);
}
报错:
Uncaught TypeError: (e.boundaries[0] || []).split is not a function
at eval (index.js?220e:1)
at dd.bb.qt (eval at yZ (getscript?v=2.0&ak=DH19DVBxenxUwGttKaXgK9NGp8DTdSeD&services=&t=20180323171755:1), <anonymous>:1:15422)
at Object.z._rd.(:8082/anonymous function) [as _cbk97251] (https://api.map.baidu.com/getscript?v=2.0&ak=DH19DVBxenxUwGttKaXgK9NGp8DTdSeD&services=&t=20180323171755:1:110437)
at ?qt=s&wd=&ie=utf-8&oue=1&fromproduct=jsapi&res=api&callback=BMap._rd._cbk97251&ak=DH19DVBxenxUwGttKaXgK9NGp8DTdSeD:1
页面能完成加载,就是报错。
有人也有遇见过这个报错吗?