Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
e6ba1637
提交
e6ba1637
authored
4月 14, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
登录 直播
上级
d21a074d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
base_api.js
client/src/api/base_api.js
+1
-1
other_api.js
client/src/api/other_api.js
+1
-1
login_api.js
client/src/modules/login-module/api/login_api.js
+1
-1
NormalLogin.vue
client/src/modules/login-module/src/NormalLogin.vue
+0
-1
index.vue
client/src/pages/login/index.vue
+1
-1
ProxyMonitor.js
server/server/controller/ProxyMonitor.js
+2
-2
没有找到文件。
client/src/api/base_api.js
浏览文件 @
e6ba1637
...
...
@@ -35,7 +35,7 @@ export default class API {
/* 具体执行请求失败后业务逻辑前,先执行该方法 */
const
beforeFail
=
_config
.
beforeFail
?
_config
.
beforeFail
:
this
.
_reqFail
const
headers
=
{
tenant
:
'
classes
'
,
tenant
:
'
wmp
'
,
version
:
window
.
G
.
VERSION
}
_config
.
headers
=
_
.
assignIn
(
_config
.
headers
,
headers
)
...
...
client/src/api/other_api.js
浏览文件 @
e6ba1637
...
...
@@ -5,7 +5,7 @@ export default class OtherAPI extends BaseAPI {
/**
* 当前登录用户,检测是否该系统有权限
*/
getInfo
=
()
=>
this
.
post
(
'/user
_center/get_user_
info'
,
{},
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
getInfo
=
()
=>
this
.
post
(
'/user
/get
info'
,
{},
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 获取我的消息信息
*/
...
...
client/src/modules/login-module/api/login_api.js
浏览文件 @
e6ba1637
...
...
@@ -15,7 +15,7 @@ export default class LoginAPI extends BaseAPI {
/**
* 当前登录用户,检测是否该系统有权限
*/
getInfo
=
()
=>
this
.
get
(
'/user
_center/get_user_
info'
,
{},
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
getInfo
=
()
=>
this
.
get
(
'/user
/get
info'
,
{},
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 发送验证码
* @param {[string]} obj.mobile 手机号
...
...
client/src/modules/login-module/src/NormalLogin.vue
浏览文件 @
e6ba1637
...
...
@@ -58,7 +58,6 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
attr
,
'============='
)
// Login.clearCookies({}).then(res => res)
},
methods
:
{
...
...
client/src/pages/login/index.vue
浏览文件 @
e6ba1637
...
...
@@ -94,7 +94,7 @@ export default {
},
mounted
()
{
if
(
/Android|webOS|iPhone|iPod|BlackBerry/i
.
test
(
navigator
.
userAgent
))
{
this
.
loginUrl
.
url
=
'
www.baidu.com
'
this
.
loginUrl
.
url
=
'
/mobile/list
'
}
},
methods
:
{
...
...
server/server/controller/ProxyMonitor.js
浏览文件 @
e6ba1637
...
...
@@ -41,8 +41,8 @@ const agentProcessor = () => {
headers
[
'Host'
]
=
'sso.ezijing.com'
headers
[
'host'
]
=
'sso.ezijing.com'
}
else
{
headers
[
'Host'
]
=
'
ep-api
.ezijing.com'
headers
[
'host'
]
=
'
ep-api
.ezijing.com'
headers
[
'Host'
]
=
'
wmp-api2
.ezijing.com'
headers
[
'host'
]
=
'
wmp-api2
.ezijing.com'
}
/* 测试 */
// if (/\/essay/gi.test(options.url) && /post/gi.test(req.method)) {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论