Sfoglia il codice sorgente

fix: onshow select index

wangyuan 2 anni fa
parent
commit
2f2c6e4199
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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 () {