Przeglądaj źródła

验证码禁用自动记录

RuoYi 6 lat temu
rodzic
commit
fe4677bcf5

+ 6 - 5
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;
             },

+ 1 - 1
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="点击更换验证码">