浏览代码

Update index.tsx

lex 1 年之前
父节点
当前提交
2d6af08dff
共有 1 个文件被更改,包括 11 次插入9 次删除
  1. 11 9
      src/components/m-img-code/index.tsx

+ 11 - 9
src/components/m-img-code/index.tsx

@@ -72,20 +72,22 @@ export default defineComponent({
         if (this.code.length < 4) {
           return;
         }
-        await request.post(this.isSuffix + `/code/verifyImageCode`, {
-          requestType: 'form',
-          hideLoading: true,
-          data: {
-            phone: this.phone,
-            code: this.code
-          }
-        });
+        // await request.post(this.isSuffix + `/code/verifyImageCode`, {
+        //   requestType: 'form',
+        //   hideLoading: true,
+        //   data: {
+        //     phone: this.phone,
+        //     code: this.code
+        //   }
+        // });
+
         await request.post(`/api-website/code/sendSmsCode`, {
           requestType: 'form',
           hideLoading: true,
           data: {
             mobile: this.phone,
-            type: this.type
+            type: this.type,
+            code: this.code
           }
         });
         setTimeout(() => {