lex 1 year ago
parent
commit
ae7999e917
2 changed files with 10 additions and 9 deletions
  1. 9 8
      src/views/login/components/img-code/index.tsx
  2. 1 1
      vite.config.ts

+ 9 - 8
src/views/login/components/img-code/index.tsx

@@ -39,18 +39,19 @@ export default defineComponent({
           return
         }
         this.loading = true
-        await request.post('/api-website/code/verifyImageCode', {
-          requestType: 'form',
-          data: {
-            phone: this.phone,
-            code: this.code
-          }
-        })
+        // await request.post('/api-website/code/verifyImageCode', {
+        //   requestType: 'form',
+        //   data: {
+        //     phone: this.phone,
+        //     code: this.code
+        //   }
+        // })
         await request.post('/api-website/code/sendSmsCode', {
           requestType: 'form',
           data: {
             mobile: this.phone,
-            type: 'LOGIN'
+            type: 'LOGIN',
+            code: this.code
           }
         })
         this.loading = false

+ 1 - 1
vite.config.ts

@@ -15,7 +15,7 @@ function resolve(dir: string) {
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
 // const proxyUrl = 'https://www.colexiu.com/';
-const proxyUrl = 'https://dev.colexiu.com/'
+const proxyUrl = 'https://test.colexiu.com/'
 export default defineConfig({
   base: './',
   plugins: [