lex 1 anno fa
parent
commit
d6c2099a89

+ 7 - 3
src/components/o-img-code/index.tsx

@@ -12,15 +12,19 @@ export default defineComponent({
     onClose: {
       type: Function,
       // (...args: any[]) => any) | undefined
-      default: () => {}
+      default: () => ({})
     },
     onSendCode: {
       type: Function,
-      default: () => {}
+      default: () => ({})
     },
     type: {
       type: String,
       default: 'LOGIN'
+    },
+    clientId: {
+      type: String,
+      default: ''
     }
   },
   data() {
@@ -87,7 +91,7 @@ export default defineComponent({
             mobile: this.phone,
             type: this.type,
             code: this.code,
-            clientId: state.clientId[state.platformType]
+            clientId: this.clientId || state.clientId[state.platformType]
           }
         })
         setTimeout(() => {

+ 1 - 0
src/school/companion-teacher/companion-teacher-register.tsx

@@ -851,6 +851,7 @@ export default defineComponent({
             v-model:value={state.imgCodeStatus}
             phone={state.forms.phone as any}
             type="REGISTER"
+            clientId="jmedu-teacher"
             onClose={() => {
               state.imgCodeStatus = false
             }}