|
@ -25,7 +25,7 @@ |
|
|
:prefix-icon="iconLock" show-password type="password" @keyup.enter="getCode()" style="height: 42px;" /> |
|
|
:prefix-icon="iconLock" show-password type="password" @keyup.enter="getCode()" style="height: 42px;" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px"> |
|
|
<!-- <el-col :span="24" style="padding-right: 10px; padding-left: 10px"> |
|
|
<el-form-item prop="code"> |
|
|
<el-form-item prop="code"> |
|
|
<div class="flex w-[100%]"> |
|
|
<div class="flex w-[100%]"> |
|
|
<el-input v-model="loginData.loginForm.code" :placeholder="t('login.codePlaceholder')" |
|
|
<el-input v-model="loginData.loginForm.code" :placeholder="t('login.codePlaceholder')" |
|
@ -40,7 +40,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px; margin-top: -20px; margin-bottom: -20px"> |
|
|
<el-col :span="24" style="padding-right: 10px; padding-left: 10px; margin-top: -20px; margin-bottom: -20px"> |
|
@ -148,13 +148,13 @@ const socialList = [ |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
function getCode() { |
|
|
function getCode() { |
|
|
getCodeImg().then(res => { |
|
|
// getCodeImg().then(res => { |
|
|
captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled; |
|
|
// captchaEnabled.value = res.captchaEnabled === undefined ? true : res.captchaEnabled; |
|
|
if (captchaEnabled.value) { |
|
|
// if (captchaEnabled.value) { |
|
|
codeUrl.value = "data:image/gif;base64," + res.img; |
|
|
// codeUrl.value = "data:image/gif;base64," + res.img; |
|
|
loginData.loginForm.uuid = res.uuid; |
|
|
// loginData.loginForm.uuid = res.uuid; |
|
|
} |
|
|
// } |
|
|
}); |
|
|
// }); |
|
|
} |
|
|
} |
|
|
//获取租户ID |
|
|
//获取租户ID |
|
|
const getTenantId = async () => { |
|
|
const getTenantId = async () => { |
|
|