mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 09:20:25 +08:00
21 lines
449 B
JavaScript
21 lines
449 B
JavaScript
Tea.context(function () {
|
|
this.bodyType = this.bodyTypes[0].code
|
|
|
|
this.addHTMLTemplate = function () {
|
|
this.$refs.htmlBody.value = `<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
\t<title>\${status} \${statusMessage}</title>
|
|
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>\${status} \${statusMessage}</h1>
|
|
<p><!-- 内容 --></p>
|
|
|
|
<address>Request ID: \${requestId}, Powered by GoEdge.</address>
|
|
|
|
</body>
|
|
</html>`
|
|
}
|
|
}) |