用户退出登录后初始化购物车数据

This commit is contained in:
TOP糯米 2023-04-08 20:18:35 +08:00
parent 5043db03b5
commit 370adef803
1 changed files with 4 additions and 0 deletions

View File

@ -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();
});
}