You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 引入cesium基础库
import "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
import * as Cesium from "mars3d-cesium"
// 导入mars3d主库
import "mars3d/dist/mars3d.css"
import * as mars3d from "mars3d"
在HelloWorld.vue文件中console.log(Cesium)报错:Cesium is not defined.
The text was updated successfully, but these errors were encountered:
1.问题描述:
2.复现步骤:
新建一个vite+vue项目,
main.js中引入:
// 引入cesium基础库
import "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
import * as Cesium from "mars3d-cesium"
// 导入mars3d主库
import "mars3d/dist/mars3d.css"
import * as mars3d from "mars3d"
在HelloWorld.vue文件中console.log(Cesium)报错:Cesium is not defined.
The text was updated successfully, but these errors were encountered: