Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
5a58efd7
提交
5a58efd7
编写于
10月 22, 2020
作者:
alex.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
外部访问menu为空
上级
fe93ba3e
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
66 行增加
和
64 行删除
+66
-64
fetch.js
src/utils-o/fetch.js
+1
-1
slidebar.vue
src/views/layout/slidebar.vue
+65
-63
未找到文件。
src/utils-o/fetch.js
浏览文件 @
5a58efd7
...
@@ -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'
)
}
}
...
...
src/views/layout/slidebar.vue
浏览文件 @
5a58efd7
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录