控制台报错:globalThis is not defined
原因:浏览器版本不兼容
解决:在html头部增加如下代码即可解决,(也可以在使用cesium的vue界面添加)
<script>
!(function (t) {
function e() {
var e = this || self;
(e.globalThis = e), delete t.prototype._T_;
}
"object" != typeof globalThis &&
(this
? e()
: (t.defineProperty(t.prototype, "_T_", {
configurable: !0,
get: e,
}),
_T_));
})(Object);
</script>