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>
29 lines
619 B
TypeScript
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')
|
|
|