feat: check if the user's chat quota is gt than current chat model required before starting a conversation

This commit is contained in:
RockYang
2023-11-09 16:56:44 +08:00
parent 5f17ab2501
commit 7ca4dfe09b
16 changed files with 200 additions and 208 deletions

View File

@@ -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};