验证码禁用自动记录

pull/72/head
RuoYi 6 years ago
parent c03613f317
commit fe4677bcf5

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

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

Loading…
Cancel
Save