完善租户功能,默认开启
This commit is contained in:
@@ -46,7 +46,6 @@
|
||||
//进入页面聚焦在username输入框,方便 用户输入
|
||||
$("#user_name").focus();
|
||||
browserFit();
|
||||
checkTenantStatus();
|
||||
});
|
||||
|
||||
//浏览器适配
|
||||
@@ -57,32 +56,6 @@
|
||||
$("#user_vcodepwd").empty().append("密 码:");
|
||||
}
|
||||
|
||||
//判断是否开启多租户
|
||||
function checkTenantStatus(){
|
||||
$("#btn_register").hide();
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/user/getTenantStatus",
|
||||
dataType: "json",
|
||||
success: function (res) {
|
||||
if(res && res.code === 200) {
|
||||
if(res.data) {
|
||||
if(res.data.status == "open") {
|
||||
$("#btn_register").show();
|
||||
} else if(res.data.status == "close") {
|
||||
$("#btn_register").hide();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$("#btn_register").hide();
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
$("#btn_register").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
//初始化键盘enter事件
|
||||
$(document).keydown(function (event) {
|
||||
//兼容 IE和firefox 事件
|
||||
|
||||
Reference in New Issue
Block a user