Commit 70cb8913 authored by 徐一鸣's avatar 徐一鸣

权限管理fixed

parent b05382b0
......@@ -183,15 +183,25 @@ export default {
};
},
mounted() {
if (this.$store.level == 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" },
];
}
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.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