Skip to content

Commit 5f1cbeb

Browse files
committed
Added new props
1 parent 34faa1c commit 5f1cbeb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plugin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ export default async (ctx, inject) => {
142142
options: themeOptions,
143143
components,
144144
baseURL,
145+
get isAuth() {
146+
return ctx.store.getters['common/customer/auth']
147+
},
148+
logout() {
149+
ctx.store.dispatch('common/customer/logout')
150+
ctx.router.push("/account/login");
151+
},
145152
get isClient() {
146153
return process.client
147154
},

0 commit comments

Comments
 (0)