优化 404 页面请求逻辑
All checks were successful
Node.js CI / build-and-test (push) Successful in 37s

This commit is contained in:
2025-05-02 22:54:47 +08:00
parent 2f6b3524c4
commit b9c163fd06
5 changed files with 45 additions and 17 deletions

View File

@ -2,19 +2,16 @@ import { createSSRApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import { createSSRRouter } from './router.js'
import ClientOnly from './ssr/ClientOnly.vue'
import Hr from './ui/BetterHr.vue'
export function createApp() {
const app = createSSRApp(App)
const router = createSSRRouter()
const pinia = createPinia()
app.use(pinia)
app.use(router)
app
.component('ClientOnly', ClientOnly)
.component('Hr', Hr)
return { app, pinia, router }
return { app, pinia }
}