A few days ago in the process of work, in the data rendering, the swiper that part of the Carousel diagram is not scrolling, manual swipe also has no effect. Always feel the data start rendering, is not the data rendering time, and did not generate Swiper node it. Then the first feeling is to put the control swiper rotation function in the initialization event,
Put in the initialization event:
The results did not reach their own ideal situation, and later placed in the data acquisition where the event of a carousel,
The Swiper can finally slide. In fact, this can not be regarded as a big problem point, but simply want to record a bit. In the future, in the face of similar problems, more should be from the data to achieve the start. This time as a work of the episode it. You also want to get a bigger boost. Work hard ...
Address the introduction of Swiper in Vue, when data rendering, there is no sliding problem