Main根文件
import { createApp } from 'vue' //创建应用
import App from './App.vue' //引入app组件,根组件
createApp(App).mount('#app') //createApp创建应用,将app组件挂载到index.html中id为app的容器位置
App.vue文件
<template>
<!-- 写html -->
</template>
<script lang="ts">
//写js / ts
</script>
<style>
/* 写css */
</style>