We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原因是详情页这个加入购物车按钮的disable是由data中dis变量控制的,而datail组件作为缓存路由组件dis变量会沿用之前的,所以一旦一个商品达到限购后dis就永久变成true了,然后导致其他所有商品详情页的加入购物车按钮都失效了,解决方法就是在activated生命周期中重置一下this.dis = false就好了
The text was updated successfully, but these errors were encountered:
请问如何解决跨域问题?
Sorry, something went wrong.
No branches or pull requests
原因是详情页这个加入购物车按钮的disable是由data中dis变量控制的,而datail组件作为缓存路由组件dis变量会沿用之前的,所以一旦一个商品达到限购后dis就永久变成true了,然后导致其他所有商品详情页的加入购物车按钮都失效了,解决方法就是在activated生命周期中重置一下this.dis = false就好了
The text was updated successfully, but these errors were encountered: