You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< div >
< div class = "crumbs" >
< el -breadcrumb separator = "/" >
< el -breadcrumb -item > < i class = "el-icon-lx-warn" > < / i > 权限测试 < / e l - b r e a d c r u m b - i t e m >
< / e l - b r e a d c r u m b >
< / div >
< div class = "container" >
< h1 > 管理员权限页面 < / h1 >
< p > 只有用 admin 账号登录的才拥有管理员权限 , 才能进到这个页面 , 其他账号想进来都会跳到403页面 , 重新用管理员账号登录才有权限 。 < / p >
< p > 想尝试一下 , 请 < router -link to = "/login" class = "logout" > 退出登录 < / r o u t e r - l i n k > , 随 便 输 入 个 账 号 名 , 再 进 来 试 试 看 。 < / p >
< / div >
< / div >
< / template >
< script >
export default {
data : function ( ) {
return { } ;
}
} ;
< / script >
< style scoped >
h1 {
text - align : center ;
margin : 30 px 0 ;
}
p {
line - height : 30 px ;
margin - bottom : 10 px ;
text - indent : 2 em ;
}
. logout {
color : # 409 eff ;
}
< / style >