From 66756b4cf232d0dabde4e30964af18bf1d51fdbd Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Fri, 28 Feb 2025 09:30:58 +0800 Subject: [PATCH] use vant --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 5ee7337..5d47ebf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,7 @@ import './assets/main.css'; import * as ElementPlusIconsVue from '@element-plus/icons-vue'; -import 'amfe-flexible' +import 'amfe-flexible'; +import Vant from 'vant' import { createApp } from 'vue'; import { createPinia } from 'pinia'; @@ -8,6 +9,7 @@ import { createPinia } from 'pinia'; import App from './App.vue'; import router from './router'; const app = createApp(App); +app.use(Vant); for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component); }