From 729256df28b98ebca9845a0dd43588b8a60d5941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=A0=E6=AA=AC=E5=86=B2=E6=B0=B4?= <10424920+ningmengchongshui@user.noreply.gitee.com> Date: Sat, 14 Oct 2023 12:13:35 +0000 Subject: [PATCH] update index.ts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 柠檬冲水 <10424920+ningmengchongshui@user.noreply.gitee.com> --- index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index fef12bf9..2544e9ea 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,8 @@ -import { setApp } from 'alemon' -import { apps } from './apps/index.js' - -setApp('miao-plugin', apps) \ No newline at end of file +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() \ No newline at end of file