我尝试使用iclient3d vue for webgl加载iserver的示例数据,但是只要将示例代码的url替换为自己的url就无法加载,App.vue代码是:
<template>
<div id="app">
<sm-viewer :scene-url="url">
<sm3d-measure></sm3d-measure>
</sm-viewer>
</div>
</template>
<script>
export default {
name: 'App',
data () {
return {
url: "http://100.77.230.103:8092/iserver/services/3D-CBD/rest/realspace"
};
}
};
</script>
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>