import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router/index.js'
import { registerPwa } from './pwa.js'
import { initCache } from './lib/cache.js'

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')

registerPwa()
initCache()  // 启动时按配置决定是否后台缓存

