Răsfoiți Sursa

所有页面的onShow方法不该有参数

萤火科技 1 an în urmă
părinte
comite
ff884597cd

+ 1 - 1
pages/cart/index.vue

@@ -137,7 +137,7 @@
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow(options) {
+    onShow() {
       // 获取缓存中的选中记录
       this.checkedIds = uni.getStorageSync(CartIdsIndex)
       // 获取购物车商品列表

+ 1 - 1
pages/user/index.vue

@@ -218,7 +218,7 @@
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow(options) {
+    onShow() {
       this.onRefreshPage()
     },
 

+ 1 - 1
pages/wallet/index.vue

@@ -49,7 +49,7 @@
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow(options) {
+    onShow() {
       // 获取页面数据
       this.getPageData()
     },

+ 1 - 1
pages/wallet/recharge/index.vue

@@ -149,7 +149,7 @@
     /**
      * 生命周期函数--监听页面显示
      */
-    onShow(options) {
+    onShow() {
       // 获取页面数据
       this.getPageData()
     },