mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-08 18:49:06 +00:00
+ Add support for i18n to avail multi language support. + Add translation support for error/init/login/suerAdmin(api/authority/menu/user/autoCode) modules under view module.
52 lines
1.1 KiB
Vue
52 lines
1.1 KiB
Vue
<template>
|
|
<div>
|
|
<div class="big">
|
|
<div class="inner">
|
|
<img src="../../assets/notFound.png">
|
|
<p>{{ t('error.message1') }}</p>
|
|
<p style="font-size:18px;line-height:40px;">{{ t('error.message2') }}</p>
|
|
<p>↓</p>
|
|
<img src="../../assets/qm.png" class="leftPic">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Error'
|
|
|
|
}
|
|
</script>
|
|
|
|
<script setup>
|
|
import { useI18n } from 'vue-i18n' // added by mohamed hassan to support multilanguage
|
|
|
|
const { t } = useI18n() // added by mohamed hassan to support multilanguage
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.big{
|
|
width: 100%;
|
|
height: calc(100vh - 220px);
|
|
background-color: rgb(244,244,244);
|
|
position: relative;
|
|
}
|
|
.inner{
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
.inner p {
|
|
text-align: center;
|
|
font-size: 24px;
|
|
}
|
|
.inner .leftPic{
|
|
width: 60px;
|
|
height: 60px;
|
|
margin-left: 44%;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|