Commit 4e8b69c1d76237d796690f4d498ad98559e0f5e0
1 parent
9f5ed82c
汉化错误页面
Showing
2 changed files
with
18 additions
and
24 deletions
ruoyi-ui/src/views/error/401.vue
| @@ -6,31 +6,22 @@ | @@ -6,31 +6,22 @@ | ||
| 6 | <el-row> | 6 | <el-row> |
| 7 | <el-col :span="12"> | 7 | <el-col :span="12"> |
| 8 | <h1 class="text-jumbo text-ginormous"> | 8 | <h1 class="text-jumbo text-ginormous"> |
| 9 | - Oops! | 9 | + 401错误! |
| 10 | </h1> | 10 | </h1> |
| 11 | - gif来源<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> 页面 | ||
| 12 | - <h2>你没有权限去该页面</h2> | ||
| 13 | - <h6>如有不满请联系你领导</h6> | 11 | + <h2>您没有访问权限!</h2> |
| 12 | + <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6> | ||
| 14 | <ul class="list-unstyled"> | 13 | <ul class="list-unstyled"> |
| 15 | - <li>或者你可以去:</li> | ||
| 16 | <li class="link-type"> | 14 | <li class="link-type"> |
| 17 | - <router-link to="/dashboard"> | 15 | + <router-link to="/"> |
| 18 | 回首页 | 16 | 回首页 |
| 19 | </router-link> | 17 | </router-link> |
| 20 | </li> | 18 | </li> |
| 21 | - <li class="link-type"> | ||
| 22 | - <a href="https://www.taobao.com/">随便看看</a> | ||
| 23 | - </li> | ||
| 24 | - <li><a href="#" @click.prevent="dialogVisible=true">点我看图</a></li> | ||
| 25 | </ul> | 19 | </ul> |
| 26 | </el-col> | 20 | </el-col> |
| 27 | <el-col :span="12"> | 21 | <el-col :span="12"> |
| 28 | <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream."> | 22 | <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream."> |
| 29 | </el-col> | 23 | </el-col> |
| 30 | </el-row> | 24 | </el-row> |
| 31 | - <el-dialog :visible.sync="dialogVisible" title="随便看"> | ||
| 32 | - <img :src="ewizardClap" class="pan-img"> | ||
| 33 | - </el-dialog> | ||
| 34 | </div> | 25 | </div> |
| 35 | </template> | 26 | </template> |
| 36 | 27 | ||
| @@ -41,15 +32,13 @@ export default { | @@ -41,15 +32,13 @@ export default { | ||
| 41 | name: 'Page401', | 32 | name: 'Page401', |
| 42 | data() { | 33 | data() { |
| 43 | return { | 34 | return { |
| 44 | - errGif: errGif + '?' + +new Date(), | ||
| 45 | - ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646', | ||
| 46 | - dialogVisible: false | 35 | + errGif: errGif + '?' + +new Date() |
| 47 | } | 36 | } |
| 48 | }, | 37 | }, |
| 49 | methods: { | 38 | methods: { |
| 50 | back() { | 39 | back() { |
| 51 | if (this.$route.query.noGoBack) { | 40 | if (this.$route.query.noGoBack) { |
| 52 | - this.$router.push({ path: '/dashboard' }) | 41 | + this.$router.push({ path: '/' }) |
| 53 | } else { | 42 | } else { |
| 54 | this.$router.go(-1) | 43 | this.$router.go(-1) |
| 55 | } | 44 | } |
ruoyi-ui/src/views/error/404.vue
| @@ -8,13 +8,18 @@ | @@ -8,13 +8,18 @@ | ||
| 8 | <img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404"> | 8 | <img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404"> |
| 9 | </div> | 9 | </div> |
| 10 | <div class="bullshit"> | 10 | <div class="bullshit"> |
| 11 | - <div class="bullshit__oops">OOPS!</div> | ||
| 12 | - <div class="bullshit__info">All rights reserved | ||
| 13 | - <a style="color:#20a0ff" href="https://wallstreetcn.com" target="_blank">wallstreetcn</a> | 11 | + <div class="bullshit__oops"> |
| 12 | + 404错误! | ||
| 14 | </div> | 13 | </div> |
| 15 | - <div class="bullshit__headline">{{ message }}</div> | ||
| 16 | - <div class="bullshit__info">Please check that the URL you entered is correct, or click the button below to return to the homepage.</div> | ||
| 17 | - <a href="" class="bullshit__return-home">Back to home</a> | 14 | + <div class="bullshit__headline"> |
| 15 | + {{ message }} | ||
| 16 | + </div> | ||
| 17 | + <div class="bullshit__info"> | ||
| 18 | + 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 | ||
| 19 | + </div> | ||
| 20 | + <router-link to="/" class="bullshit__return-home"> | ||
| 21 | + 返回首页 | ||
| 22 | + </router-link> | ||
| 18 | </div> | 23 | </div> |
| 19 | </div> | 24 | </div> |
| 20 | </div> | 25 | </div> |
| @@ -26,7 +31,7 @@ export default { | @@ -26,7 +31,7 @@ export default { | ||
| 26 | name: 'Page404', | 31 | name: 'Page404', |
| 27 | computed: { | 32 | computed: { |
| 28 | message() { | 33 | message() { |
| 29 | - return 'The webmaster said that you can not enter this page...' | 34 | + return '找不到网页!' |
| 30 | } | 35 | } |
| 31 | } | 36 | } |
| 32 | } | 37 | } |