// 按需导入createApp,它是vue导出的对象的一个函数
import { createApp } from 'vue'
// 导入当前文件目录下的App.vue,命名为App
import App from './音乐App/App.vue'
// 导入element-plus的css
import 'element-plus/dist/index.css'
// createApp创建一个新的实例
const app = createApp(App)
// //全局自定义指令
// app.directive('focus',{
// mounted(el){
// el.focus()
// }
// })
// mount将该实例挂载到index.html中id为app的位置
app.mount('#app')
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/56670436774614