错误原因:vue3中使用了代理
解决方式:引入下面代码做判断
L.Popup.prototype._animateZoom = function (e) {
if (!this._map) {
return
}
var pos = this._map._latLngToNewLayerPoint(this._latlng, e.zoom, e.center),
anchor = this._getAnchor()
L.DomUtil.setPosition(this._container, pos.add(anchor))
}