|
@@ -1,13 +1,23 @@
|
|
|
<template>
|
|
|
- <div v-if="error.statusCode == 500">{{ error.message || 'error' }}</div>
|
|
|
+ <div class="content">
|
|
|
+ <v-logo></v-logo>
|
|
|
+ <div class="warn">
|
|
|
+ <img src="@/static/svg/icon-warn.svg" alt="" />
|
|
|
+ <p v-if="error.statusCode == 500">{{ error.message || 'error' }}</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Report from '@/log-center/log';
|
|
|
+import VLogo from '@/components/logo.vue';
|
|
|
import { getMid, appVersionCode } from '@/utils/help';
|
|
|
export default {
|
|
|
name: 'error',
|
|
|
props: ['error'],
|
|
|
+ components: {
|
|
|
+ VLogo,
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
mid: getMid(),
|
|
@@ -30,4 +40,36 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss"></style>
|
|
|
+<style lang="scss">
|
|
|
+html,
|
|
|
+body,
|
|
|
+#__nuxt,
|
|
|
+#__layout {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.content {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: linear-gradient(180deg, #d8efff 0%, #ffffff 44.3%);
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ .warn {
|
|
|
+ text-align: center;
|
|
|
+ color: #aab4b9;
|
|
|
+ img {
|
|
|
+ width: 100px;
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+ p {
|
|
|
+ margin-top: 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|