Commit e68461ab authored by 徐光星's avatar 徐光星

feat: fix sentry error

parent 7aa4e083
......@@ -218,7 +218,7 @@ export default {
const [res, err] = await api.getShopCartCount();
this.cartCount = err ? 0 : res.count || 0;
this.$nextTick(() => {
this.$refs.crBackTop.$forceUpdate();
if (this.$refs.crBackTop) this.$refs.crBackTop.$forceUpdate();
});
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment