Files
element-plus/play/main.ts
2022-02-11 11:04:15 +08:00

11 lines
320 B
TypeScript

import { createApp } from 'vue'
import '@element-plus/theme-chalk/src/index.scss'
;(async () => {
const apps = import.meta.glob('./src/*.vue')
const name = location.pathname.replace(/^\//, '') || 'App'
const App = (await apps[`./src/${name}.vue`]()).default
const app = createApp(App)
app.mount('#play')
})()