Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
381 views
in Technique[技术] by (71.8m points)

vue中如何使用bimface, 提示'BimfaceSDKLoaderConfig' is not defined

在index.html引入了bimface的js

页面中mounted()方法中开始使用, 但是提示'BimfaceSDKLoaderConfig' is not defined

<script>

//?import?BimFace?from?'@/utils/BimfaceSDKLoader.js'

export default {

 data ()?{

 return {

 viewer3D: '',

 app: '',

 viewToken: '275817bfced440d88081c52c6ae32c67'

 }

 },

 created ()?{

 },

 mounted ()?{

 var loaderConfig = new BimfaceSDKLoaderConfig()

 loaderConfig.viewToken = this.viewToken

 BimfaceSDKLoader.load(loaderConfig, this.successCallback, this.failureCallback)

 },

 methods: {

 successCallback (viewMetaData)?{

 var domShow = document.getElementById('domId')

 var webAppConfig = new Glodon.Bimface.Application.WebApplication3DConfig()

 webAppConfig.domElement = domShow

 this.app = new Glodon.Bimface.Application.WebApplication3D(webAppConfig)

 this.app.addView(this.viewToken)

 this.viewer3D = this.app.getViewer()

 },

 failureCallback (error)?{

 console.log(error)

 }

 }

}

</script>

求问如何解决?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...