Browse Source

fixed type thingie

Tino Koch 3 tháng trước cách đây
mục cha
commit
3863899141
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/TresCanvas.vue

+ 1 - 1
src/components/TresCanvas.vue

@@ -155,7 +155,7 @@ const unmountCanvas = () => {
 }
 
 onMounted(async () => {
-  const existingCanvas = canvasRef.value as Ref<HTMLCanvasElement>
+  const existingCanvas = canvasRef as Ref<HTMLCanvasElement>
 
   context.value = await useTresContextProvider({
     scene: scene.value as TresScene,