Эх сурвалжийг харах

fix: handle index pages onshow function

wangyuan 2 жил өмнө
parent
commit
f124e79ea6

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