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