guhongwei 3 years ago
parent
commit
482db94876
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/market/index.js

+ 3 - 2
pages/market/index.js

@@ -39,8 +39,9 @@ Page({
          title: '操作提示',
          content: '您确认上架/下架此产品吗?',
          success: (res) => {
-            if (res.confirm) wx.showToast({ title: `操作成功`, icon: 'success', duration: 2000 })
-            else if (res.cancel) { }
+            if (res.confirm) {
+               wx.showToast({ title: `操作成功`, icon: 'success', duration: 2000 })
+            }
          }
       })
    },