Baidu-map centerAndZoom of undefined

Error in callback for watcher "center": "TypeError: Cannot read property "centerAndZoom" of undefined"
Cannot read property" centerAndZoom" of undefined

Why do you keep reporting undefined

      <div id="map">
        <baidu-map class="bm-view" ak="fKU9vX6h1mmAiuiopj7aLSx14VK4ZELq" id="allmap" :center="center" :zoom="zoom" @ready="handler">
        </baidu-map>
      </div>
handler ({ BMap, map }) {
  setTimeout(() => {
    map = new BMap.Map("allmap")
    // var point = new BMap.Point(116.331398, 39.897445)
    // map.centerAndZoom(point, 12);
    var local = new BMap.LocalSearch(map, {
      renderOptions: { map: map }
    });
    local.search(this.infoDetails.city);
  }, 260);
},
Jun.28,2021

have you solved it?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31d13-2bdc0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31d13-2bdc0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?