mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
commit
be3f9af236
12
index.ts
12
index.ts
@ -1,4 +1,8 @@
|
|||||||
import { setApp } from 'alemon'
|
import { createApp, getAppName } from 'alemonjs'
|
||||||
import { apps } from './apps/index.js'
|
const AppName = getAppName(import.meta.url)
|
||||||
|
const { apps } = await import('./apps/index.js').finally(() => {
|
||||||
setApp('miao-plugin', apps)
|
console.log('[APP] 喵喵插件 启动')
|
||||||
|
})
|
||||||
|
const app = createApp(AppName)
|
||||||
|
app.component(apps)
|
||||||
|
app.mount()
|
Loading…
Reference in New Issue
Block a user