定义全局loding

This commit is contained in:
X1627315083
2025-10-23 14:05:42 +08:00
parent dab0bfaa5e
commit c454a16f04
4 changed files with 44 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import 'vant/lib/index.css'
import { Locale } 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";
@@ -32,6 +33,7 @@ document.addEventListener('touchend', function(event) {
const app = createApp(App)
app.use(router)
.use(store)
.use(Loading)
.component("SvgIcon", SvgIcon)
.mount('#app')