cesium+Vue配置环境(简易)
新版Vue目录:

将下载好的Cesium放入public中:

index.html引入:

然后启动:

但是会报错:

'Cesium' is not defined no-undef
找不到Cesium,问题出在代码检查eslint中
在package.json中(旧版.eslintrc.js)找到eslintConfig
加入
"globals": { "Cesium": true }
再次运行,问题就解决了
新版Vue目录:

将下载好的Cesium放入public中:

index.html引入:

然后启动:

但是会报错:

'Cesium' is not defined no-undef
找不到Cesium,问题出在代码检查eslint中
在package.json中(旧版.eslintrc.js)找到eslintConfig
加入
"globals": { "Cesium": true }
再次运行,问题就解决了