ソースを参照

fix: onshow select index

wangyuan 2 年 前
コミット
2f2c6e4199
1 ファイル変更1 行追加0 行削除
  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 () {