We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bead0f commit b5e72eaCopy full SHA for b5e72ea
src/plugin.js
@@ -167,9 +167,10 @@ export default async (ctx, inject) => {
167
get isAuth() {
168
return ctx.store.getters['common/customer/auth']
169
},
170
- logout() {
171
- ctx.store.dispatch('common/customer/logout')
172
- ctx.router.push("/account/login");
+ async logout() {
+ await ctx.store.dispatch('common/customer/logout')
+
173
+ ctx.app.router.push("/account/login");
174
175
get isClient() {
176
return process.client
0 commit comments