Permission.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div>
  3. <div class="crumbs">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item><i class="el-icon-warning"></i> 权限测试</el-breadcrumb-item>
  6. </el-breadcrumb>
  7. </div>
  8. <div class="container">
  9. <h1>管理员权限页面</h1>
  10. <p>只有用 admin 账号登录的才拥有管理员权限,才能进到这个页面,其他账号想进来都会跳到403页面,重新用管理员账号登录才有权限。</p>
  11. <p>想尝试一下,请<router-link to="/login" class="logout">退出登录</router-link>,随便输入个账号名,再进来试试看。</p>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. data: function(){
  18. return {}
  19. }
  20. }
  21. </script>
  22. <style scoped>
  23. h1{
  24. text-align: center;
  25. margin: 30px 0;
  26. }
  27. p{
  28. line-height: 30px;
  29. margin-bottom: 10px;
  30. text-indent: 2em;
  31. }
  32. .logout{
  33. color: #409EFF;
  34. }
  35. </style>