59 lines
42 KiB
HTML
59 lines
42 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>服务器401错误</title>
|
||
|
|
</head>
|
||
|
|
<style>
|
||
|
|
.exception{margin:186px 0;text-align:center;}.exception .exception-img{margin:15px 30px;display:inline-block;vertical-align:middle;}.exception .exception-text{margin:15px 30px;display:inline-block;vertical-align:middle;}.exception:not(.exception-dark) .exception-content>h1,.exception-content>p{color:#515a6e;}.exception .exception-content>h1{font-size:72px;font-weight:600;margin:0 0 20px 0;}.exception .exception-content>p{font-size:20px;margin:0 0 25px 0;color:#808695;}.button{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #ddd;border-color:#ddd;color:#595959;-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;transition:.1s;font-weight:500;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;padding:12px 20px;font-size:14px;border-radius:4px;}.button-primary{color:#fff;background-color:#409eff;border-color:#409eff;}.button-medium{padding:10px 20px;font-size:14px;border-radius:4px;}
|
||
|
|
|
||
|
|
</style>
|
||
|
|
<body>
|
||
|
|
<div class="exception">
|
||
|
|
<div class="exception-img">
|
||
|
|
<svg data-v-67754a9f="" width="227" height="269" viewBox="0 0 227 269" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs data-v-67754a9f=""><path data-v-67754a9f="" d="M0 131.5c0-29.712 2.002-61.194 6.007-94.445 2.225-18.473 17.225-32.78 35.782-34.13C68.622.976 91.041 0 109.044 0c18.09 0 40.799.985 68.129 2.954 18.572 1.338 33.589 15.656 35.809 34.144C216.994 70.51 219 102.083 219 131.813c0 29.66-1.997 61.03-5.99 94.114-2.23 18.474-17.237 32.778-35.797 34.12-27.238 1.969-49.735 2.953-67.491 2.953-17.794 0-40.43-.989-67.91-2.966-18.569-1.336-33.585-15.649-35.81-34.133C2 192.666 0 161.2 0 131.5z" id="b"></path><filter data-v-67754a9f="" x="-4.5%" y="-1.4%" width="106.2%" height="104.4%" filterUnits="objectBoundingBox" id="a"><feMorphology data-v-67754a9f="" radius=".81" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology><feOffset data-v-67754a9f="" dx="-6" dy="4" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset><feComposite data-v-67754a9f="" in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite><feColorMatrix data-v-67754a9f="" values="0 0 0 0 0.639215686 0 0 0 0 0.694117647 0 0 0 0 0.749019608 0 0 0 0.3 0" in="shadowOffsetOuter1"></feColorMatrix></filter><path data-v-67754a9f="" d="M39.654 130.992c0-20.899.881-41.798 2.643-62.697.97-11.504 9.9-20.738 21.366-22.091a388.15 388.15 0 0 1 45.531-2.687c15.167 0 30.333.895 45.5 2.684 11.47 1.353 20.403 10.593 21.368 22.103a755.378 755.378 0 0 1 2.657 63.124c0 20.88-.88 41.76-2.64 62.638-.97 11.505-9.903 20.74-21.369 22.091a389.034 389.034 0 0 1-45.598 2.693c-15.145 0-30.291-.894-45.437-2.682-11.468-1.355-20.4-10.593-21.365-22.101a754.09 754.09 0 0 1-2.656-63.075z" id="d"></path><filter data-v-67754a9f="" x="-6%" y="-2.3%" width="108.6%" height="105.9%" filterUnits="objectBoundingBox" id="c"><feMorphology data-v-67754a9f="" radius=".81" operator="dilate" in="SourceAlpha" result="shadowSpreadOuter1"></feMorphology><feOffset data-v-67754a9f="" dx="-5" dy="3" in="shadowSpreadOuter1" result="shadowOffsetOuter1"></feOffset><feComposite data-v-67754a9f="" in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite><feColorMatrix data-v-67754a9f="" values="0 0 0 0 0.639215686 0 0 0 0 0.694117647 0 0 0 0 0.749019608 0 0 0 0.3 0" in="shadowOffsetOuter1"></feColorMatrix></filter><path data-v-67754a9f="" d="M161.51 89.858h15.333v17.534H161.51a6.568 6.568 0 0 1-6.567-6.568v-4.398a6.568 6.568 0 0 1 6.567-6.568z" id="f"></path><filter data-v-67754a9f="" x="-13.7%" y="-5.7%" width="118.3%" height="117.1%" filterUnits="objectBoundingBox" id="e"><feOffset data-v-67754a9f="" dx="-2" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feComposite data-v-67754a9f="" in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite><feColorMatrix data-v-67754a9f="" values="0 0 0 0 0.639215686 0 0 0 0 0.694117647 0 0 0 0 0.749019608 0 0 0 0.3 0" in="shadowOffsetOuter1"></feColorMatrix></filter><path data-v-67754a9f="" d="M183.958 89.858h15.332v17.534h-15.332a6.568 6.568 0 0 1-6.568-6.568v-4.398a6.568 6.568 0 0 1 6.568-6.568z" id="h"></path><filter data-v-67754a9f="" x="-2.3%" y="-2.9%" width="109.1%" height="111.4%" filterUnits="objectBoundingBox" id="g"><feOffset data-v-67754a9f="" dx="1" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feComposite data-v-67754a9f="" in="shadowOffsetOuter1" in2="SourceAlpha" operator="out" result="shadowOffsetOuter1"></feComposite><feColorMatrix data-v-67754a9f="" values="0 0 0 0 0.639215686 0 0 0 0 0.694117647 0 0 0 0 0.749019608 0 0 0 0.3 0" in="shadowOffsetOuter1"></feColorMatrix></filter><filter data-v-67754a9f="" x="-55.5%" y="-9.3%" width="177.5%" height="148%" filterUnits="objectBoundingBox" id="i"><feOffset data-v-67754a9f="" dx="-1" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feColorMatrix data-v-67754a9f="" values="0 0 0 0 0.639215686 0 0 0 0 0.694117647 0 0 0 0 0.749019608 0 0 0 0.3 0" in="shadowOffsetOuter1" result=
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="exception-text">
|
||
|
|
<div class="exception-content">
|
||
|
|
<h1>401</h1>
|
||
|
|
<p>抱歉,你无权访问该页面</p>
|
||
|
|
<div>
|
||
|
|
<button type="button" class="button button-primary button-medium"><span id="back">返回首页</span></button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
<script>
|
||
|
|
// 直接采用原生代码
|
||
|
|
document.getElementById("back").onclick=function(){
|
||
|
|
|
||
|
|
// 清理本地数据
|
||
|
|
var href = window.location.href
|
||
|
|
,pathname = window.location.pathname
|
||
|
|
,search = window.location.search;
|
||
|
|
pathname = pathname.replace(search,'');
|
||
|
|
var data = sessionStorage.getItem('swiftadmin_template');
|
||
|
|
|
||
|
|
if (typeof data !== "object") {
|
||
|
|
data = JSON.parse(data);
|
||
|
|
var TabLists = data.TabLists;
|
||
|
|
console.log(TabLists);
|
||
|
|
for (var i = 0; i < TabLists.length; i++) {
|
||
|
|
if (TabLists[i]['id'] == pathname) {
|
||
|
|
TabLists.splice(i,1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 修正数据
|
||
|
|
data.activeTab = TabLists[0]['id'];
|
||
|
|
// 转存数据
|
||
|
|
data = JSON.stringify(data);
|
||
|
|
sessionStorage.setItem('swiftadmin_template',data);
|
||
|
|
}
|
||
|
|
top.window.location.replace(href.substring(0,href.indexOf('.php')+4));
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</html>
|