ali 1 年間 前
親
コミット
7055cfbd4d
1 ファイル変更、2 行追加、0 行削除
  1. 2 0
      src/store/Auth/actions.js

+ 2 - 0
src/store/Auth/actions.js

@@ -1,4 +1,5 @@
 import { Cookies } from 'quasar'
+import { Basket } from 'src/models/Basket.js'
 import { APIGateway } from 'src/api/APIGateway.js'
 
 export function login (context, data) {
@@ -90,6 +91,7 @@ export function logOut (context, payload) {
   const clearRedirectTo = payload?.clearRedirectTo
   context.commit('updateAccessToken', null)
   context.commit('updateUser', null)
+  context.commit('Shop/updateBasket', new Basket(), { root: true })
   if (typeof window !== 'undefined') {
     Cookies.set('BearerAccessToken', '', {
       // domain: '.' + window.location.host,