初始化
This commit is contained in:
18
src/App.vue
Normal file
18
src/App.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div id="root" ref="root-dom" class="w-100vw h-100vh"></div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import XSystem from '@/core/XSystem.ts'
|
||||
import { onMounted, useTemplateRef } from 'vue'
|
||||
|
||||
const dom = useTemplateRef<HTMLDivElement>('root-dom')
|
||||
|
||||
onMounted(() => {
|
||||
XSystem.instance.initialization(dom.value!);
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user