Vuejs2 意外的字符串连接(首选模板)结果[i][0]。lat+''+;结果[i][0]

Vuejs2 意外的字符串连接(首选模板)结果[i][0]。lat+''+;结果[i][0],vuejs2,vue-component,vuex,heremaps,Vuejs2,Vue Component,Vuex,Heremaps,怎么了??我该怎么办 HereMap.vue let waypoints = [] this.map.removeObjects(this.map.getObjects()) this.directions = [] waypoints = [this.geocode(start), this.geocode(finish)] Promise.all(waypoints).then(result => { const mark

怎么了??我该怎么办

HereMap.vue

let waypoints = []
      this.map.removeObjects(this.map.getObjects())
      this.directions = []
      waypoints = [this.geocode(start), this.geocode(finish)]
      Promise.all(waypoints).then(result => {
        const markers = []
        for (let i = 0; i < result.length; ++i) {
          params[`waypoint, ${i}`] = `${result[i][0].lat  },${  result[i][0].lng}`
          markers.push(new H.map.Marker(result[i][0]))
        }
let航路点=[]
this.map.removeObjects(this.map.getObjects())
this.directions=[]
航路点=[此.geocode(开始),此.geocode(完成)]
承诺。所有(航路点)。然后(结果=>{
常量标记=[]
for(设i=0;i