mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-31 15:08:48 +08:00
45 lines
993 B
Vue
45 lines
993 B
Vue
<template>
|
|
<div>
|
|
<body>
|
|
<div>
|
|
<el-row type="flex" justify="center">
|
|
<h1>{{ loadErrInfo() }}</h1>
|
|
</el-row>
|
|
</div>
|
|
<hr />
|
|
<div>
|
|
<el-row type="flex" justify="center"><span>nginx</span></el-row>
|
|
</div>
|
|
</body>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const props = defineProps({
|
|
code: String,
|
|
});
|
|
const loadErrInfo = () => {
|
|
console.log(props.code);
|
|
switch (props.code) {
|
|
case '400':
|
|
return '400 Bad Request';
|
|
case '401':
|
|
return '401 Unauthorized';
|
|
case '403':
|
|
return '403 Forbidden';
|
|
case '404':
|
|
return '404 Not Found';
|
|
case '408':
|
|
return '408 Request Timeout';
|
|
case '416':
|
|
return '416 Requested Not Satisfiable';
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.container {
|
|
margin-left: 40%;
|
|
}
|
|
</style>
|