Commit d1007ef4 authored by 徐一鸣's avatar 徐一鸣

权限管理fixed

parent 70cb8913
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,7 @@ export default {
user_arr: [ user_arr: [
{ name: "个人档案", path: "/user/user_info" }, { name: "个人档案", path: "/user/user_info" },
{ name: "消息通知", path: "/user/message" }, { name: "消息通知", path: "/user/message" },
{ name: "收银中心", path: "/authority" },
{ name: "关于BD-aPaaS", path: "/data_analysis" }, { name: "关于BD-aPaaS", path: "/data_analysis" },
{ name: "退出登录", path: "logout" }, { name: "退出登录", path: "logout" },
], ],
...@@ -183,26 +184,6 @@ export default { ...@@ -183,26 +184,6 @@ export default {
}; };
}, },
mounted() { mounted() {
this.$api.user.getNowUser().then(({ data }) => {
if (data.success == 1) {
this.$store.commit("userInfofun", data.data);
const userLevel = this.$store.getters.level;
if (userLevel === 2) {
this.user_arr = [
{ name: "个人档案", path: "/user/user_info" },
{ name: "消息通知", path: "/user/message" },
{ name: "收银中心", path: "/authority" },
{ name: "关于BD-aPaaS", path: "/data_analysis" },
{ name: "退出登录", path: "logout" },
];
}
} else {
console.log(data.errMsg);
}
});
this.getMenuIndex(); this.getMenuIndex();
this.getList(); this.getList();
}, },
......
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