Improve the conversation process

This commit is contained in:
Rafi
2023-04-04 19:16:07 +08:00
parent 16c9b0e230
commit 3e3283029d
14 changed files with 152 additions and 99 deletions

View File

@@ -1,8 +1,5 @@
export default defineNuxtRouteMiddleware(async (to, from) => {
// skip middleware on server
if (process.server) return
const user = useUser()
const signInPath = '/account/signin'
if (!user.value && to.path !== signInPath) {