增加权限和登录跳转
This commit is contained in:
@@ -35,8 +35,11 @@ function deserialize(value) {
|
||||
}
|
||||
|
||||
function validateResult(result) {
|
||||
if(result.errCode == 200) {
|
||||
if (result.errCode == 200) {
|
||||
return true;
|
||||
} else if (result.errCode == 400) {
|
||||
var href = encodeURI(window.location.href);
|
||||
window.location = "static/manage/login.html?returnUrl=" + href;
|
||||
} else {
|
||||
alert(result.errMsg);
|
||||
}
|
||||
@@ -222,8 +225,13 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction
|
||||
data : eval(paramsStr),
|
||||
contentType : "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
success : function(msg) {
|
||||
if(typeof successFunction == "function") {
|
||||
successFunction(msg,id);
|
||||
if (msg.errCode == 400) {
|
||||
var href = encodeURI(window.location.href);
|
||||
window.location = "static/manage/login.html?returnUrl=" + href;
|
||||
} else {
|
||||
if (typeof successFunction == "function") {
|
||||
successFunction(msg, id);
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeSend : function() {
|
||||
|
||||
@@ -45,10 +45,10 @@
|
||||
<li>
|
||||
<a href="#"><i class="icon icon-window-alt"></i> 文档查看页面</a>
|
||||
<ul>
|
||||
<li><a target="_blank" href="../../doc-wiki.html"><i class="icon-book"></i> wiki文档</a></li>
|
||||
<li><a target="_blank" href="../../doc-dubbo.html"><i class="icon-node"></i> dubbo文档</a></li>
|
||||
<li><a target="_blank" href="../../doc-db.html"><i class="icon-database"></i> 数据库文档</a></li>
|
||||
<li><a target="_blank" href="../../document.html"><i class="icon-file-code"></i> zyplayer-doc-swagger</a></li>
|
||||
<li><a target="_blank" href="../../doc-wiki"><i class="icon-book"></i> wiki文档</a></li>
|
||||
<li><a target="_blank" href="../../doc-dubbo"><i class="icon-node"></i> dubbo文档</a></li>
|
||||
<li><a target="_blank" href="../../doc-db"><i class="icon-database"></i> 数据库文档</a></li>
|
||||
<li><a target="_blank" href="../../doc-swagger"><i class="icon-file-code"></i> zyplayer-doc-swagger</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user