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

外部访问menu为空

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