Commit 220ee3d1 authored by 罗林杰's avatar 罗林杰

对普通用户隐藏员工信息

parent 04b4b578
......@@ -33,6 +33,7 @@
margin-left: 1px;
"
index="/employee/employee"
v-if="roles[0] === 'admin'"
>
<i style="width: 10px; height: 10px; margin-top: -12px"></i>
员工信息
......@@ -101,6 +102,7 @@ export default {
components: { Menu },
data() {
return {
roles: [],
backTag: false,
newTopNev: [
{
......@@ -197,6 +199,8 @@ export default {
this.currentIndex = this.$route.path;
this.$store.dispatch("app/toggleSideBarHide", true);
this.setVisibleNumber();
this.roles = this.$store.getters.roles;
},
created() {
this.getinfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment