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'})