提交 f6997f84 authored 作者: jinrb's avatar jinrb

增加验证码

上级 b144a8f6
...@@ -63,6 +63,15 @@ ...@@ -63,6 +63,15 @@
<a-input-password class="fix-auto-fill" :placeholder="t('sys.login.password')" v-model:value="formData.password" /> <a-input-password class="fix-auto-fill" :placeholder="t('sys.login.password')" v-model:value="formData.password" />
</a-form-item> </a-form-item>
</div> </div>
<div class="aui-inputClear">
<a-form-item>
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.inputCode')" v-model:value="formData.inputCode" />
</a-form-item>
<div class="aui-code">
<img v-if="randCodeData.requestCodeSuccess" :src="randCodeData.randCodeImage" @click="handleChangeCheckCode" />
<img v-else style="margin-top: 2px; max-width: initial" :src="codeImg" @click="handleChangeCheckCode" />
</div>
</div>
</div> </div>
</a-form> </a-form>
</div> </div>
...@@ -192,6 +201,9 @@ ...@@ -192,6 +201,9 @@
toRaw({ toRaw({
password: RsaParams(formData.password), password: RsaParams(formData.password),
username: RsaParams(formData.username), username: RsaParams(formData.username),
url: RsaParams(formData.url),
captcha: formData.inputCode,
checkKey: randCodeData.checkKey,
mode: 'none', //不要默认的错误提示 mode: 'none', //不要默认的错误提示
}) })
); );
...@@ -306,6 +318,11 @@ ...@@ -306,6 +318,11 @@
@prefix-cls: ~'@{namespace}-mini-login'; @prefix-cls: ~'@{namespace}-mini-login';
@dark-bg: #293146; @dark-bg: #293146;
.ant-tabs-tab{
font-size: 18px;
font-weight: bold;
}
html[data-theme='dark'] { html[data-theme='dark'] {
.@{prefix-cls} { .@{prefix-cls} {
background-color: @dark-bg !important; background-color: @dark-bg !important;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论