Fix image import

This commit is contained in:
Thehrz 2023-02-18 14:56:16 +08:00
parent 6a13fde12b
commit 7e25e8b94d
3 changed files with 2 additions and 5 deletions

2
src/components.d.ts vendored
View File

@ -7,8 +7,6 @@ export {}
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
export interface GlobalComponents { export interface GlobalComponents {
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
Footer: typeof import('./components/Footer.vue')['default'] Footer: typeof import('./components/Footer.vue')['default']
Nav: typeof import('./components/Nav.vue')['default'] Nav: typeof import('./components/Nav.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']

View File

@ -11,4 +11,4 @@
点击 `注册` 点击 `注册`
<img src="contribute_0.png" /> <img src="/contribute_0.png" />

View File

@ -18,7 +18,7 @@ import Shiki from 'markdown-it-shiki'
import VueMacros from 'unplugin-vue-macros/vite' import VueMacros from 'unplugin-vue-macros/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers' import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify' import vuetify from 'vite-plugin-vuetify'
export default defineConfig({ export default defineConfig({
resolve: { resolve: {
@ -35,7 +35,6 @@ export default defineConfig({
vue: Vue({ vue: Vue({
include: [/\.vue$/, /\.md$/], include: [/\.vue$/, /\.md$/],
reactivityTransform: true, reactivityTransform: true,
template: { transformAssetUrls },
}), }),
}, },
}), }),