This commit is contained in:
@@ -55,7 +55,6 @@ export default{
|
||||
async obj(){
|
||||
if (!this.obj) return;
|
||||
gameEngine = new GameEngine();
|
||||
this.gameEngine = gameEngine;
|
||||
await gameEngine.init(this.$refs.target, {
|
||||
gizmo: true,
|
||||
xr: true,
|
||||
|
||||
@@ -56,14 +56,6 @@ export default {
|
||||
renderType: 'ST',
|
||||
cameraType: 'perspective',
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
async setGameHeader(){
|
||||
let screenshot = await this.engine.captureScreenshot();
|
||||
let fd = new FormData();
|
||||
fd.append('file', screenshot);
|
||||
await this.$api.game.setHeader(this.modelValue.id, fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user