Files
shanxia2.0/mobile-h5/src/main.ts
T
zlwuandCursor a4b13fa2bc chore(mobile-h5): add existing H5 app sources to the monorepo
Track the weighbridge mobile-h5 codebase (excluding node_modules, dist, and local .env) so subsequent adaptation tasks can evolve it in-repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 22:28:53 +08:00

29 lines
619 B
TypeScript

import { createApp } from 'vue'
import App from './App.vue'
import { initStore } from './store'
import { initRouter } from './router'
import { initState } from './utils/storage'
import { Toast, Dialog, Notify } from 'vant'
import 'vant/lib/index.css'
import './assets/styles/vant-theme.scss'
import './assets/styles/index.scss'
const app = createApp(App)
// 初始化 Store
initStore(app)
// 初始化 Router
initRouter(app)
// 初始化本地存储状态(必须在 Store 和 Router 初始化之后)
initState()
// 注册 Vant 函数式组件
app.use(Toast)
app.use(Dialog)
app.use(Notify)
app.mount('#app')