diff --git a/common/templates/login.html b/common/templates/login.html
index 15af003f17..1e99b0fa92 100644
--- a/common/templates/login.html
+++ b/common/templates/login.html
@@ -50,19 +50,25 @@
注册账号
@@ -142,11 +148,12 @@
$(document).ready(function () {
$(document).keydown(function (event) {
//keycode==13为回车键
- if (event.keyCode == 13) {
+ console.log($("#sign-up").css("display"))
+ if (event.keyCode === 13 && $("#sign-up").css("display") === 'none') {
$('#btnLogin').addClass('disabled');
$('#btnLogin').prop('disabled', true);
- username = $('#inputUsername').val();
- password = $('#inputPassword').val();
+ let username = $('#inputUsername').val();
+ let password = $('#inputPassword').val();
authenticateUser(username, password);
}
});
diff --git a/sql/templates/data_dictionary.html b/sql/templates/data_dictionary.html
index 4ebc0e6120..927c6577f6 100644
--- a/sql/templates/data_dictionary.html
+++ b/sql/templates/data_dictionary.html
@@ -26,7 +26,7 @@