Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
0078d673
提交
0078d673
authored
10月 10, 2020
作者:
zyx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
容器化修改统一登录
上级
0ba88a01
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
17 行增加
和
11 行删除
+17
-11
.config.pro.js
client/.config.pro.js
+2
-1
.config.test.js
client/.config.test.js
+2
-1
base_api.js
client/src/api/base_api.js
+4
-3
Before.js
client/src/components/beforeEnter/Before.js
+5
-4
sidebar.vue
client/src/components/learnSysLayout/sidebar.vue
+2
-1
list.vue
client/src/pages/mobileLive/list.vue
+2
-1
没有找到文件。
client/.config.pro.js
浏览文件 @
0078d673
...
...
@@ -3,7 +3,8 @@ module.exports = {
DesDir
:
'../client-dist'
,
apiBaseURL
:
'/'
,
others
:
{
url
:
'/app/learn/course'
url
:
'/app/learn/course'
,
loginUrl
:
'https://login.ezijing.com/sofia/login/index'
},
webpack
:
{
externals
:
{
...
...
client/.config.test.js
浏览文件 @
0078d673
...
...
@@ -3,7 +3,8 @@ module.exports = {
DesDir
:
'../client-dist'
,
apiBaseURL
:
'/'
,
others
:
{
url
:
'/app/learn/course'
url
:
'/app/learn/course'
,
loginUrl
:
'https://login.ezijing.com/sofia/login/index'
},
isUploadStatic
:
false
,
webpack
:
{
...
...
client/src/api/base_api.js
浏览文件 @
0078d673
...
...
@@ -73,9 +73,10 @@ export default class API {
if
(
/
\/
login
\/
index/gi
.
test
(
href
))
{
_vIn
.
$router
.
go
(
0
)
}
else
{
_vIn
.
$router
.
push
({
path
:
'/login/index?rd='
+
encodeURIComponent
(
href
.
replace
(
/.*
?\/\/
.*
?\/
/gi
,
'/'
))
})
// _vIn.$router.push({
// path: '/login/index?rd=' + encodeURIComponent(href.replace(/.*?\/\/.*?\//gi, '/'))
// })
window
.
location
.
href
=
webConf
.
others
.
loginUrl
+
'?rd='
+
encodeURIComponent
(
href
.
replace
(
/.*
?\/\/
.*
?\/
/gi
,
'/'
))
}
}
...
...
client/src/components/beforeEnter/Before.js
浏览文件 @
0078d673
...
...
@@ -24,10 +24,11 @@ export default class Before {
// 检测登录状态
const
isLogin
=
await
this
.
isLogin
()
if
(
!
isLogin
)
{
next
({
path
:
'/login/index'
,
query
:
{
rd
:
encodeURIComponent
(
to
.
fullPath
)
}
})
// next({
// path: '/login/index',
// query: { rd: encodeURIComponent(to.fullPath) }
// })
window
.
location
.
href
=
webConf
.
others
.
loginUrl
+
'?rd='
+
encodeURIComponent
(
to
.
fullPath
)
return
}
// 移动端
...
...
client/src/components/learnSysLayout/sidebar.vue
浏览文件 @
0078d673
...
...
@@ -126,7 +126,8 @@ export default {
cAction
.
Other
.
outLogin
()
.
then
(
str
=>
{
window
.
G
.
UserInfo
=
{}
this
.
$router
.
push
({
path
:
'/login/index'
})
// this.$router.push({ path: '/login/index' })
window
.
location
.
href
=
webConf
.
others
.
loginUrl
})
.
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
...
...
client/src/pages/mobileLive/list.vue
浏览文件 @
0078d673
...
...
@@ -67,7 +67,8 @@ export default {
cAction
.
Other
.
outLogin
()
.
then
(
str
=>
{
window
.
G
.
UserInfo
=
{
}
this
.
$router
.
push
({
path
:
'/login/index'
}
)
// this.$router.push(
{
path
:
'/login/index'
}
)
window
.
location
.
href
=
webConf
.
others
.
loginUrl
}
)
.
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论