提交 5a58efd7 编写于 作者: alex.zhang's avatar alex.zhang

外部访问menu为空

上级 fe93ba3e
......@@ -56,7 +56,7 @@ service.interceptors.request.use(config => {
// console.log('环境变量>>>> ', process.env.BUILD_ENV);
// config.headers['token'] = 'BFD804F3A3194FBBBE113962222839F6';
// config.headers['token'] = 'F8209898391C40A0B8DBC1ED9E157291';
config.headers['token'] = 'F64D5633857D4E16B3C2CCE5E48B0D1E';
config.headers['token'] = '3CB696DD019344828A86D0BF016DBA98';
}else{
config.headers['token'] = localStorage.getItem('storageToken')
}
......
......@@ -125,40 +125,40 @@ export default {
icon: "el-icon-menu",
index: "home",
},
{
title: "教培项目",
icon: "el-icon-message",
index: "item",
subs: [
{
title: "下载报告",
icon: "el-icon-document",
index: "export-download",
},
{
title: "项目管理",
icon: "el-icon-setting",
index: "item-manager",
},
],
},
{
title: "系统管理",
icon: "el-icon-menu",
index: "system",
subs: [
{
title: "角色管理",
icon: "el-icon-setting",
index: "role",
},
],
},
// {
// title: "教培项目",
// icon: "el-icon-message",
// index: "item",
// subs: [
// {
// title: "下载报告",
// icon: "el-icon-document",
// index: "export-download",
// },
// {
// title: "项目管理",
// icon: "el-icon-setting",
// index: "item-manager",
// },
// ],
// },
// {
// title: "系统管理",
// icon: "el-icon-menu",
// index: "system",
// subs: [
// {
// title: "角色管理",
// icon: "el-icon-setting",
// index: "role",
// },
// ],
// title: '云鹊店铺',
// icon: 'el-icon-first-aid-kit',
// index: 'shop'
// },
// // {
// // title: '云鹊店铺',
// // icon: 'el-icon-first-aid-kit',
// // index: 'shop'
// // },
],
outsideItems: [
// 外部用户 路由
......@@ -193,43 +193,45 @@ export default {
},
mounted() {
console.log("mounted() : this.storageIdType = " + this.storageIdType);
// if (this.storageIdType == 1) {
// vm.setEntrySide();
// } else if (this.storageIdType == 2) {
// vm.setFollowSide();
// vm.getRoleObj();
// }
// vm.setShopSide();
// vm.setCircleSlide();
if (this.storageIdType == 1) {
vm.setEntrySide();
} else if (this.storageIdType == 2) {
vm.setFollowSide();
vm.getRoleObj();
}
vm.setShopSide();
vm.setCircleSlide();
},
watch: {
// authList(newVal, oldVal) {
// if (!newVal.P001) {
// // 项目管理
// vm.items[1].subs[1].index = "blank";
// }
// if (!newVal.P002) {
// // 组件管理
// vm.items[1].subs[0].index = "blank";
// }
// if (!newVal.P003) {
// // 角色管理
// vm.items[2].subs[0].index = "blank";
// }
// },
// storageIdType(val) {
// console.log("storageIdType() : val = " + val);
// if (val == 1) {
// vm.setEntrySide();
// } else if (val == 2) {
// vm.setFollowSide();
// vm.getRoleObj();
// }
// },
authList(newVal, oldVal) {
console.log("watch.authList() : newVal = " + newVal + ", oldVal = " + oldVal);
if (!newVal.P001) {
// 项目管理
vm.items[1].subs[1].index = "blank";
}
if (!newVal.P002) {
// 组件管理
vm.items[1].subs[0].index = "blank";
}
if (!newVal.P003) {
// 角色管理
vm.items[2].subs[0].index = "blank";
}
},
storageIdType(val) {
console.log("watch.storageIdType() : val = " + val);
if (val == 1) {
vm.setEntrySide();
} else if (val == 2) {
vm.setFollowSide();
vm.getRoleObj();
}
},
},
methods: {
getUserType() {
// console.log('当前路由地址:', this.$route.path, typeof this.$route.path)
console.log("getUserType() : enter");
let currentPath = this.$route.path || "";
let req = {};
// console.log('isOutsideUser: ', this.$store.state.cmeStore.isOutsideUser)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册