diff --git a/build/plugins/unplugin.ts b/build/plugins/unplugin.ts index f2f49df..12ff80f 100644 --- a/build/plugins/unplugin.ts +++ b/build/plugins/unplugin.ts @@ -1,6 +1,6 @@ import Components from 'unplugin-vue-components/vite'; import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'; -import Icons from 'unplugin-icons/vite'; +import Icons from 'unplugin-icons/vite'; // https://github.com/antfu/unplugin-icons import IconsResolver from 'unplugin-icons/resolver'; import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'; // https://github.com/vbenjs/vite-plugin-svg-icons/blob/main/README.zh_CN.md import path from 'path'; @@ -12,6 +12,7 @@ export default [ }), Icons({ /* options */ + defaultStyle: 'display:inline-block', compiler: 'vue3', }), createSvgIconsPlugin({ diff --git a/src/layouts/components/common/HeaderButton.vue b/src/layouts/components/common/HeaderButton.vue index 6d00ca4..b9aa89b 100644 --- a/src/layouts/components/common/HeaderButton.vue +++ b/src/layouts/components/common/HeaderButton.vue @@ -1,5 +1,8 @@ diff --git a/src/layouts/components/header/UserCenter.vue b/src/layouts/components/header/UserCenter.vue index 5d04153..fb51627 100644 --- a/src/layouts/components/header/UserCenter.vue +++ b/src/layouts/components/header/UserCenter.vue @@ -1,7 +1,7 @@