Commit 119ce245 by Joey

fix(@rbc/rbc-login): 低版本浏览器报错

parent b18058d6
......@@ -265,18 +265,20 @@ export default {
});
},
async getVerificationCode() {
getVerificationCode() {
try {
this.verifyuuid = GMS.util.generateUUID();
const res = await GMS.$http.get(
GMS.$http.get(
`/captcha/getCaptcha?clientId=${this.verifyuuid}`,
{
responseType: "blob",
}
);
if (res.data) {
this.verificationImg = window.URL.createObjectURL(res.data);
}
).then((res) => {
if (res.data) {
this.verificationImg = window.URL.createObjectURL(res.data);
}
})
} catch (err) {
console.log(err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment