Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-live
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-live
Commits
542f684e
提交
542f684e
authored
3月 30, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
65907d03
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
43 行增加
和
14 行删除
+43
-14
account.js
src/api/account.js
+1
-1
aside.vue
src/components/layout/aside.vue
+5
-5
header.vue
src/components/layout/header.vue
+14
-7
index.vue
src/pages/calendar/index.vue
+10
-0
index.vue
src/pages/system/index.vue
+10
-0
routes.js
src/router/routes.js
+3
-1
没有找到文件。
src/api/account.js
浏览文件 @
542f684e
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 登出
// 登出
export
function
logout
()
{
export
function
logout
()
{
return
httpRequest
.
get
(
'/api/
lms/user
/logout'
)
return
httpRequest
.
get
(
'/api/
passport
/logout'
)
}
}
// 获取用户信息
// 获取用户信息
export
function
getUser
()
{
export
function
getUser
()
{
...
...
src/components/layout/aside.vue
浏览文件 @
542f684e
...
@@ -49,11 +49,11 @@ export default {
...
@@ -49,11 +49,11 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activeLink
:
'/c
ourse/learn
'
,
activeLink
:
'/c
alendar
'
,
menus
:
[
menus
:
[
{
title
:
'直播日历'
,
path
:
''
},
{
title
:
'直播日历'
,
path
:
'
/calendar
'
},
{
title
:
'系统管理'
,
path
:
''
},
{
title
:
'系统管理'
,
path
:
'
/system
'
},
{
title
:
'个人设置'
,
path
:
''
}
{
title
:
'个人设置'
,
path
:
'
/my
'
}
]
]
}
}
},
},
...
@@ -81,7 +81,7 @@ export default {
...
@@ -81,7 +81,7 @@ export default {
// 退出登录
// 退出登录
logout
()
{
logout
()
{
this
.
$store
.
dispatch
(
'logout'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'logout'
).
then
(()
=>
{
window
.
location
.
href
=
webConf
.
others
.
loginUrl
window
.
location
.
href
=
`
${
webConf
.
others
.
loginUrl
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
})
})
},
},
handleClick
(
path
,
item
)
{
handleClick
(
path
,
item
)
{
...
...
src/components/layout/header.vue
浏览文件 @
542f684e
<
template
>
<
template
>
<div
class=
"app-header"
>
<div
class=
"app-header"
>
<div
class=
"title"
>
<div
class=
"logo"
><img
src=
"https://zws-imgs-pub.ezijing.com/pc/base/logo.svg"
height=
"40"
/></div>
<!--
<div
class=
"title"
>
<router-link
to=
"/"
>
{{
title
}}
</router-link>
<router-link
to=
"/"
>
{{
title
}}
</router-link>
</div>
</div>
-->
<div
class=
"tool"
>
<div
class=
"tool"
>
<!--
<nav
class=
"nav"
>
<!--
<nav
class=
"nav"
>
<router-link
to=
"/"
>
首页
</router-link>
<router-link
to=
"/"
>
首页
</router-link>
...
@@ -12,8 +13,8 @@
...
@@ -12,8 +13,8 @@
<div
class=
"user"
>
<div
class=
"user"
>
<img
:src=
"avatar"
class=
"user-avatar"
/>
<img
:src=
"avatar"
class=
"user-avatar"
/>
<span
class=
"user-name"
v-if=
"user.realname || user.nickname"
>
{{
user
.
realname
||
user
.
nickname
}}
</span>
<span
class=
"user-name"
v-if=
"user.realname || user.nickname"
>
{{
user
.
realname
||
user
.
nickname
}}
</span>
<span
class=
"user-name"
@
click=
"logout"
>
退出登录
</span>
</div>
</div>
<div
class=
"logout"
@
click=
"logout"
>
退出登录
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -39,7 +40,7 @@ export default {
...
@@ -39,7 +40,7 @@ export default {
// 退出登录
// 退出登录
logout
()
{
logout
()
{
this
.
$store
.
dispatch
(
'logout'
).
then
(()
=>
{
this
.
$store
.
dispatch
(
'logout'
).
then
(()
=>
{
window
.
location
.
href
=
webConf
.
others
.
loginUrl
window
.
location
.
href
=
`
${
webConf
.
others
.
loginUrl
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
})
})
}
}
}
}
...
@@ -51,16 +52,19 @@ export default {
...
@@ -51,16 +52,19 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
height
:
8
0px
;
height
:
6
0px
;
padding
:
0
3
0px
;
padding
:
0
2
0px
;
background-color
:
#fff
;
background-color
:
#fff
;
.tool
{
.tool
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.logo
{
height
:
40px
;
}
.title
{
.title
{
flex
:
1
;
font-size
:
24px
;
font-size
:
24px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#222
;
color
:
#222
;
...
@@ -92,5 +96,8 @@ export default {
...
@@ -92,5 +96,8 @@ export default {
.user-name
{
.user-name
{
padding
:
0
10px
;
padding
:
0
10px
;
}
}
.logout
{
cursor
:
pointer
;
}
}
}
</
style
>
</
style
>
src/pages/calendar/index.vue
0 → 100644
浏览文件 @
542f684e
<
template
>
<app-container
title=
"直播日历"
></app-container>
</
template
>
<
script
>
import
AppContainer
from
'@/components/AppContainer'
export
default
{
components
:
{
AppContainer
}
}
</
script
>
src/pages/system/index.vue
0 → 100644
浏览文件 @
542f684e
<
template
>
<app-container
title=
"系统管理"
></app-container>
</
template
>
<
script
>
import
AppContainer
from
'@/components/AppContainer'
export
default
{
components
:
{
AppContainer
}
}
</
script
>
src/router/routes.js
浏览文件 @
542f684e
...
@@ -7,7 +7,9 @@ export default [
...
@@ -7,7 +7,9 @@ export default [
component
:
Layout
,
component
:
Layout
,
children
:
[
children
:
[
/* 首页 */
/* 首页 */
{
path
:
'/index'
,
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'@/pages/home'
)
}
{
path
:
'/index'
,
component
:
()
=>
import
(
/* webpackChunkName: "home" */
'@/pages/home'
)
},
{
path
:
'/calendar'
,
component
:
()
=>
import
(
/* webpackChunkName: "calendar" */
'@/pages/calendar'
)
},
{
path
:
'/system'
,
component
:
()
=>
import
(
/* webpackChunkName: "system" */
'@/pages/system'
)
}
]
]
}
}
]
]
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论