mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 04:03:42 +08:00
feat: check if the user's chat quota is gt than current chat model required before starting a conversation
This commit is contained in:
@@ -226,12 +226,14 @@ const router = createRouter({
|
||||
routes: routes,
|
||||
})
|
||||
|
||||
let prevRoute = null
|
||||
// dynamic change the title when router change
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (to.meta.title) {
|
||||
document.title = `${to.meta.title} | ${process.env.VUE_APP_TITLE}`
|
||||
}
|
||||
prevRoute = from
|
||||
next()
|
||||
})
|
||||
|
||||
export default router;
|
||||
export {router, prevRoute};
|
||||
Reference in New Issue
Block a user