瀏覽代碼

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 () {