mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 09:20:25 +08:00
优化界面
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<p class="comment">如果选择了严格匹配域名,找不到匹配的域名时会采取对应的动作。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tbody v-show="globalConfig.httpAll.matchDomainStrictly">
|
||||
<tr>
|
||||
<td>默认域名</td>
|
||||
<td>
|
||||
@@ -44,18 +45,19 @@
|
||||
<p class="comment" v-if="domainMismatchAction == 'page'">当找不到访问的域名时显示一个提示页面。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="domainMismatchAction == 'page'">
|
||||
<tr v-show="domainMismatchAction == 'page'">
|
||||
<td class="color-border">响应代码</td>
|
||||
<td>
|
||||
<input type="text" name="domainMismatchActionPageStatusCode" v-model="domainMismatchActionPageOptions.statusCode" style="width:4em" maxlength="3"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="domainMismatchAction == 'page'">
|
||||
<td class="color-border">域名不匹配时的动作页面</td>
|
||||
<tr v-show="domainMismatchAction == 'page'">
|
||||
<td class="color-border">域名不匹配时显示的页面</td>
|
||||
<td>
|
||||
<textarea name="domainMismatchActionPageContentHTML" v-model="domainMismatchActionPageOptions.contentHTML" rows="3"></textarea>
|
||||
<textarea name="domainMismatchActionPageContentHTML" v-model="domainMismatchActionPageOptions.contentHTML" rows="15"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -30,13 +30,20 @@ Tea.context(function () {
|
||||
<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>
|
||||
<h4>找不到您要访问的页面.</h4>
|
||||
<h4>Sorry, page not found.</h4>
|
||||
<h3>Error: 404 Page Not Found</h3>
|
||||
<h3>找不到您要访问的页面。</h3>
|
||||
|
||||
<p>原因:找不到当前访问域名对应的网站,请联系网站管理员。</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
</html>`
|
||||
}
|
||||
if (this.globalConfig.httpAll.domainMismatchAction != null) {
|
||||
this.domainMismatchAction = this.globalConfig.httpAll.domainMismatchAction.code
|
||||
|
||||
Reference in New Issue
Block a user