From 5e1ff0a69e4afd220bed6d31f18fff1817fcf23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Tue, 1 Mar 2022 23:38:21 +0800 Subject: [PATCH] =?UTF-8?q?style(main.ts):=20=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 7c8bf6ad..d765dbdf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -32,7 +32,8 @@ Object.keys(directive).forEach(key => { // 全局方法 app.config.globalProperties.$listDictsByCode = listDictsByCode -app.component('Pagination', Pagination) // 全局组件 +// 注册全局组件 +app.component('Pagination', Pagination) .use(store) .use(router) .use(ElementPlus, {size: localStorage.get('size') || 'small'})