Improve the conversation process
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user