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?
1. Install Apache $ sudo apt update && su...
example: <html> <head> <style type...
Table of contents Preface Introduction to Dockerf...
This article uses examples to explain the concept...
Directly post code and examples #Write comments w...
This article shares the specific code of the vue-...
mysql-5.7.17.msi installation, follow the screens...
Note: When writing the docker-compose.yml file, a...
Table of contents vue - Use swiper plugin to impl...
This example uses jQuery to implement a mouse dra...
Table of contents 1. Drag effect example 2. CSS I...
This article uses examples to illustrate the diff...
background When we want to log in to the MySQL da...
Main differences: 1. Type SQL databases are prima...
During the configuration of Jenkins+Tomcat server...