All checks were successful
Node.js CI / build-and-test (push) Successful in 41s
更新依赖 移除不必要的注释 优化 "关于" 页面 启用 SASS/SCSS
24 lines
478 B
JavaScript
24 lines
478 B
JavaScript
import { decompress } from 'compress-json'
|
|
import './main.scss'
|
|
|
|
import { createApp } from './main'
|
|
import { createSSRRouter } from './router.js'
|
|
|
|
const { app, pinia } = createApp()
|
|
const router = createSSRRouter()
|
|
|
|
app.use(router)
|
|
|
|
if (window.__PINIA_STATE__) {
|
|
pinia.state.value = decompress(window.__PINIA_STATE__)
|
|
}
|
|
|
|
if (window.__INITIAL_STATE__) {
|
|
window.__INITIAL_STATE__ = decompress(window.__INITIAL_STATE__)
|
|
}
|
|
|
|
router.isReady().then(() => {
|
|
app.mount('#app')
|
|
})
|
|
|