Pārlūkot izejas kodu

fix: onshow select index

wangyuan 2 gadi atpakaļ
vecāks
revīzija
2f2c6e4199
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      pages/index/index.js

+ 1 - 0
pages/index/index.js

@@ -32,6 +32,7 @@ Page({
    * 生命周期函数--监听页面显示
    */
   onShow() {
+    app.globalData.selectedInex = 0
     this.handleToken()
   },
   handleToken () {