fix(web): 修复CI;修复进度未同步的问题;优化数据加载

This commit is contained in:
Xwite
2024-10-15 21:22:19 +08:00
parent 41e2c4f177
commit 9dda6fd45f
7 changed files with 11 additions and 33 deletions
-14
View File
@@ -19,18 +19,4 @@ const router = createRouter({
routes: bookRoutes,
})
import { createApp } from 'vue'
import App from '@/App.vue'
import store, { useBookStore } from '@/store'
// init pinia instance
createApp(App).use(store)
router.beforeEach((to, from, next) => {
// 自动加载阅读配置
useBookStore()
.loadWebConfig()
.then(() => next())
.catch(() => next())
})
export default router
-14
View File
@@ -12,18 +12,4 @@ router.afterEach(to => {
if (to.name == 'shelf') document.title = '书架'
})
import { createApp } from 'vue'
import App from '@/App.vue'
import store, { useBookStore } from '@/store'
// init pinia instance
createApp(App).use(store)
router.beforeEach((to, from, next) => {
// 自动加载阅读配置
useBookStore()
.loadWebConfig()
.then(() => next())
.catch(() => next())
})
export default router