优化界面

This commit is contained in:
刘祥超
2022-05-23 14:54:27 +08:00
parent 6266af66f7
commit 1a19c7520a
2 changed files with 49 additions and 40 deletions

View File

@@ -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>

View File

@@ -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