VUE uses vue-seamless-scroll to automatically scroll and like. Because there are two overhidden, the clicks are not synchronized with the DOM. There will be two vue-seamless-scrolls suspended up and down in the code. The like trigger at the suspended part has no response. The reason is: the suspended vue-seamless-scroll below is static and the DOM is not synchronized. Solution: Add this.$refs.seamlessScroll.reset() to indicate reset This is the end of this article about solving the data asynchrony problem at the connection point of vue-seamless-scroll and likes. For more relevant vue-seamless-scroll content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Monitor the size change of a DOM element through iframe
>>: How many ports can a Linux server open at most?
Copy code The code is as follows: <!DOCTYPE ht...
MySQL Performance Optimization MySQL performance ...
Common points: The DIV tag and SPAN tag treat som...
Preface Whether it is Oracle or MySQL, the new fe...
Table of contents 1. Variables Use meaningful nam...
This article shares the specific code of js to ac...
Now .net core is cross-platform, and everyone is ...
Table of contents js deep copy Data storage metho...
The following example code introduces the princip...
1.17.9 More delicious, really Nginx download addr...
Table of contents 1. Anonymous slots 2. Named slo...
Use runlike to view the docker run startup parame...
1. Key points for early planning of VMware vSpher...
Rancher deployment can have three architectures: ...
Preface Semicolons in JavaScript are optional, an...