lejianwen 8 months ago
parent
commit
3084e40039
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/login/login.vue

+ 2 - 0
src/views/login/login.vue

@@ -78,6 +78,7 @@
78
     password: '',
78
     password: '',
79
     platform: platform,
79
     platform: platform,
80
     captcha: '',
80
     captcha: '',
81
+    captcha_id: ''
81
   })
82
   })
82
 
83
 
83
   const captchaCode = ref('')
84
   const captchaCode = ref('')
@@ -99,6 +100,7 @@
99
     const captchaRes = await captcha().catch(_ => false)
100
     const captchaRes = await captcha().catch(_ => false)
100
     console.log(captchaRes)
101
     console.log(captchaRes)
101
     captchaCode.value = captchaRes.data.captcha
102
     captchaCode.value = captchaRes.data.captcha
103
+    form.captcha_id = captchaRes.data.captcha.id
102
   }
104
   }
103
 
105
 
104
   const handleOIDCLogin = (provider) => {
106
   const handleOIDCLogin = (provider) => {