vue-cli-plugin-cesium icon indicating copy to clipboard operation
vue-cli-plugin-cesium copied to clipboard

Cesium encapsulation based on Vue cli

Results 6 vue-cli-plugin-cesium issues
Sort by recently updated
recently updated
newest added

ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema. - options[0] has an unknown property 'to'. These properties are...

代码 var tileset = new Cesium.Cesium3DTileset({ url: "Tileset/tileset.json", }); tileset.readyPromise .then(function (tileset) { viewer.scene.primitives.add(tileset); viewer.zoomTo( tileset, new Cesium.HeadingPitchRange( 0.0, -0.5, tileset.boundingSphere.radius * 2.0 ) ); }) .otherwise(function (error) { console.log(error);...

没有代码提示怎么办啊

我在vue.config.js中的configureWebpack加入的DefinePlugin中的CESIUM_BASE_URL会被插件覆盖。 ![image](https://user-images.githubusercontent.com/39240626/148487818-b7d82c0a-e13a-4ddc-8a3c-54fa917c3e36.png) 这里获取不到publicPath,我在vue.config.js中设置的publicPath是./ ,vue-cli会对./做处理 图里的opts.publicPath拿到的是空字符串。 CESIUM_BASE_URL为空字符串的时候会请求不到Cesium的资源。 我的服务器地址前面有路径,不是直接在域名后面。 ![image](https://user-images.githubusercontent.com/39240626/148488000-6271ccc4-fe26-429e-8f8d-bc09973aa27c.png) 像这样,Cesium就找不到依赖的文件

是因为cli版本太新了吗