Browse Source

添加类型

lex 11 months ago
parent
commit
80a9495096

+ 1 - 0
src/views/login/components/form/index.tsx

@@ -255,6 +255,7 @@ export default defineComponent({
         {this.codeStatus && (
           <ImgCode
             phone={this.form.username}
+            loginType={this.loginType}
             onClose={() => {
               this.codeStatus = false
             }}

+ 6 - 1
src/views/login/components/img-code/index.tsx

@@ -11,6 +11,10 @@ export default defineComponent({
       type: String,
       default: ''
     },
+    loginType: {
+      type: String,
+      default: ''
+    },
     onSendCode: {
       type: Function,
       default: () => {}
@@ -51,7 +55,8 @@ export default defineComponent({
           data: {
             mobile: this.phone,
             type: 'LOGIN',
-            code: this.code
+            code: this.code,
+            client: this.loginType
           }
         })
         this.loading = false