Map组件定义事件无效



  • Map组建bindmarkertap等定义事件的方法明明定义了但是点击标记控制台报错,该handler未定义。。。
    报错信息:VM7713:1 Do not have gasStationModel.markertap handler in component: pages/gasStation/index. Please make sure that gasStationModel.markertap handler has been defined in pages/gasStation/index.

    但是我已经定义了:markertap: async (e) => {
    console.log(e.details)
    },


登录后回复