library懒加载

This commit is contained in:
李志鹏
2025-10-24 16:21:04 +08:00
parent 093508ed5a
commit 47d0b1fcc9
6 changed files with 11 additions and 9 deletions

View File

@@ -10,10 +10,9 @@ import "virtual:svg-icons-register";
// vant组件库
import 'vant/lib/index.css'
import { Locale } from 'vant';
import { Locale, Lazyload, Loading } from 'vant';
import enUS from 'vant/es/locale/lang/en-US';
Locale.use('en-US', enUS);
import { Loading } from 'vant';
import flexible from "./utils/flexible.js";
@@ -33,6 +32,7 @@ document.addEventListener('touchend', function(event) {
const app = createApp(App)
app.use(router)
.use(store)
.use(Lazyload)
.use(Loading)
.component("SvgIcon", SvgIcon)
.mount('#app')