dever 4 anni fa
parent
commit
b1b858faeb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pages/dream/view.vue

+ 1 - 1
pages/dream/view.vue

@@ -191,7 +191,7 @@ export default{
 			}
 		},
 		change : function(e) {
-			this.swiper.index = e.detail.current;
+			this.swiper.index = parseInt(e.detail.current);
 			//用户记录
 			this.record();
 			this.controlHandle();