mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
11 lines
320 B
TypeScript
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')
|
|
})()
|