mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 16:50:26 +08:00
将全局的通用设置--域名审核设置移到“集群设置--网站设置”中
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Tea.context(function () {
|
||||
this.tab = "domainAuditing"
|
||||
this.tab = "tcpPorts"
|
||||
|
||||
this.$delay(function () {
|
||||
if (window.location.hash != null && window.location.hash.length > 1) {
|
||||
@@ -18,41 +18,6 @@ Tea.context(function () {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 域名不匹配动作
|
||||
*/
|
||||
this.domainMismatchAction = "page"
|
||||
|
||||
this.domainMismatchActionPageOptions = {
|
||||
statusCode: 404,
|
||||
contentHTML: `<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<title>404 not found</title>
|
||||
<style type="text/css">
|
||||
* { font-family: Roboto, system-ui, sans-serif; }
|
||||
h3, p { text-align: center; }
|
||||
p { color: grey; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h3>Error: 404 Page Not Found</h3>
|
||||
<h3>找不到您要访问的页面。</h3>
|
||||
|
||||
<p>原因:找不到当前访问域名对应的网站,请联系网站管理员。</p>
|
||||
|
||||
</body>
|
||||
</html>`
|
||||
}
|
||||
if (this.globalConfig.httpAll.domainMismatchAction != null) {
|
||||
this.domainMismatchAction = this.globalConfig.httpAll.domainMismatchAction.code
|
||||
|
||||
if (this.domainMismatchAction == "page") {
|
||||
this.domainMismatchActionPageOptions = this.globalConfig.httpAll.domainMismatchAction.options;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* TCP端口
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user