Kaynağa Gözat

fix: handle index pages onshow function

wangyuan 2 yıl önce
ebeveyn
işleme
f124e79ea6
2 değiştirilmiş dosya ile 2 ekleme ve 7 silme
  1. 0 2
      pages/handleFile/handleFile.js
  2. 2 5
      pages/index/index.js

+ 0 - 2
pages/handleFile/handleFile.js

@@ -124,8 +124,6 @@ Page({
 
   /* 确定 */
   handleConfirm () {
-    console.log(this.data.fileList);
-    console.log(this.data.delFileList);
     var delPara = {}
     for (let index = 0; index < this.data.delFileList.length; index++) {
       const element = this.data.delFileList[index];

+ 2 - 5
pages/index/index.js

@@ -22,11 +22,8 @@ Page({
     QRCodeBase64: '',
     qrcodeDialog: false
   },
-
-  /**
-   * 生命周期函数--监听页面显示
-   */
-  onLoad() {
+  
+  onShow () {
     this.initIndexData()
   },
   onPullDownRefresh () {