From 7d773734b9cac1b25925a38597278a2e32857208 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 13 Aug 2024 20:05:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=20app.use=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.uts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.uts b/main.uts index 229c38e..adf0abb 100644 --- a/main.uts +++ b/main.uts @@ -267,13 +267,13 @@ export function createApp() { app.use(plugin2) app.use(plugin3) app.use(plugin4) - app.use(function (app: VueApp, componentName: string, componentInstance: CreateVueComponent) { - app.component(componentName, componentInstance) - }, 'CompForPlugin1', CompForPlugin) + app.use(function (app: VueApp, componentName: string) { + app.component(componentName, CompForPlugin) + }, 'CompForPlugin1') app.use({ install(app: VueApp, a: string | null, b: string | null) { - app.component('CompForPlugin2', CompForPlugin as CreateVueComponent) + app.component('CompForPlugin2', CompForPlugin) } }, null, null) -- GitLab