用户退出登录后初始化购物车数据
This commit is contained in:
parent
5043db03b5
commit
370adef803
|
@ -230,6 +230,10 @@ export default {
|
|||
prototype.$storage.set('user_access_token', null);
|
||||
prototype.$storage.set('userinfo', null);
|
||||
$store.commit('user/token', "");
|
||||
$store.commit('cart/cart', {
|
||||
loaded: false,
|
||||
list: [],
|
||||
});
|
||||
return resolve();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue