Browse Source

验证码禁用自动记录

pull/72/head
RuoYi 6 years ago
parent
commit
fe4677bcf5
  1. 11
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
  2. 2
      ruoyi-admin/src/main/resources/templates/login.html

11
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -99,12 +99,13 @@
tooltip: function (value, length) {
var _length = $.common.isEmpty(length) ? 20 : length;
var _text = "";
if ($.common.isNotEmpty(value) && value.length > _length) {
_text = value.substr(0, _length) + "...";
var _value = $.common.nullToStr(value);
if (_value.length > _length) {
_text = _value.substr(0, _length) + "...";
} else {
_text = $.common.nullToStr(value);
_text = _value;
}
return '<a href="#" class="tooltip-show" data-toggle="tooltip" title="' + value + '">' + _text +'</a>';
return '<a href="#" class="tooltip-show" data-toggle="tooltip" title="' + _value + '">' + _text +'</a>';
},
// 搜索-默认第一个form
search: function(formId) {
@ -918,7 +919,7 @@
// 空对象转字符串
nullToStr: function(value) {
if ($.common.isEmpty(value)) {
return '-'
return "-";
}
return value;
},

2
ruoyi-admin/src/main/resources/templates/login.html

@ -51,7 +51,7 @@
<input type="password" name="password" class="form-control pword" placeholder="密码" value="admin123" />
<div class="row m-t" th:if="${captchaEnabled==true}">
<div class="col-xs-6">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5">
<input type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" autocomplete="off">
</div>
<div class="col-xs-6">
<a href="javascript:void(0);" title="点击更换验证码">

Loading…
Cancel
Save