Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove in middleware not work #155

Open
citrusjunoss opened this issue May 19, 2023 · 3 comments
Open

remove in middleware not work #155

citrusjunoss opened this issue May 19, 2023 · 3 comments

Comments

@citrusjunoss
Copy link

        if(isClient) {
          removeToken('f_token')
        }else {
          console.log('run in server')
          app.$cookies.remove('f_token')
        }
        console.log(app.$cookies.get('f_token'), 789)
image
@freezyh
Copy link

freezyh commented Jul 24, 2024

我也出现这情况,在服务端无法使用app.$cookies.remove无法生效

@freezyh
Copy link

freezyh commented Jul 24, 2024

@microcipcip

@freezyh
Copy link

freezyh commented Jul 24, 2024

        if(isClient) {
          removeToken('f_token')
        }else {
          console.log('run in server')
          app.$cookies.remove('f_token')
        }
        console.log(app.$cookies.get('f_token'), 789)
image

try it
app.$cookies.set('f_token', '', {
maxAge: -1,
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants