فهرست منبع

Merge remote-tracking branch 'origin/2025鹅状元数学' into 2025鹅状元数学

tanxue 14 ساعت پیش
والد
کامیت
6d7782c5fa
2فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 2 1
      api/my.js
  2. 5 6
      pages/chanpinMy/duihuanma.vue

+ 2 - 1
api/my.js

@@ -131,6 +131,7 @@ export function duihuanmaCodeNew(data = {}) {
     },
     method: 'post',
     data,
-    timeout: 20000
+    timeout: 20000,
+	customCatch:true,
   })
 }

+ 5 - 6
pages/chanpinMy/duihuanma.vue

@@ -118,14 +118,13 @@
 				// 清空缓存
 				cacheManager.remove("contentInfo");
 				duihuamaValue.value = '';
-        dhSucRef.value.handleShow()
+                dhSucRef.value.handleShow()
 			}
 		}).catch(err=> {
-      if (err && err.code == 1002) {
-        dhErrRef.value.handleShow(err.msg)
-
-      }
-    })
+		  if (err && err.code == 1001) {
+			dhErrRef.value.handleShow(err.msg)
+		  }
+		})
 	}
 </script>