!39 update index.ts.

Merge pull request !39 from 柠檬冲水/N/A
This commit is contained in:
Kokomi 2023-10-15 19:54:55 +00:00 committed by Gitee
commit be3f9af236
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,8 @@
import { setApp } from 'alemon'
import { apps } from './apps/index.js'
setApp('miao-plugin', apps)
import { createApp, getAppName } from 'alemonjs'
const AppName = getAppName(import.meta.url)
const { apps } = await import('./apps/index.js').finally(() => {
console.log('[APP] 喵喵插件 启动')
})
const app = createApp(AppName)
app.component(apps)
app.mount()