library懒加载
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user