From 7e25e8b94d10c6a23133c9cea46cd2ec8d2f8fbf Mon Sep 17 00:00:00 2001 From: Thehrz Date: Sat, 18 Feb 2023 14:56:16 +0800 Subject: [PATCH] Fix image import --- src/components.d.ts | 2 -- src/posts/contribute.md | 2 +- vite.config.ts | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components.d.ts b/src/components.d.ts index d833f74..8f2c0a1 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -7,8 +7,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - ElMenu: typeof import('element-plus/es')['ElMenu'] - ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] Footer: typeof import('./components/Footer.vue')['default'] Nav: typeof import('./components/Nav.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] diff --git a/src/posts/contribute.md b/src/posts/contribute.md index e860f2a..00c7d02 100644 --- a/src/posts/contribute.md +++ b/src/posts/contribute.md @@ -11,4 +11,4 @@ 点击 `注册` - \ No newline at end of file + \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 6bd732f..9a5be80 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,7 +18,7 @@ import Shiki from 'markdown-it-shiki' import VueMacros from 'unplugin-vue-macros/vite' import { ElementPlusResolver } from 'unplugin-vue-components/resolvers' -import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' +import vuetify from 'vite-plugin-vuetify' export default defineConfig({ resolve: { @@ -35,7 +35,6 @@ export default defineConfig({ vue: Vue({ include: [/\.vue$/, /\.md$/], reactivityTransform: true, - template: { transformAssetUrls }, }), }, }),