mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-15 13:56:51 +08:00
feat(login): 增加短信验证码登录功能- 在登录页面添加短信验证码输入框和发送验证码按钮- 实现发送短信验证码和验证短信验证码的接口调用- 修改登录逻辑,支持短信验证码登录-优化登录流程,增加错误提示
This commit is contained in:
@@ -36,6 +36,11 @@ service.interceptors.request.use(
|
||||
endLoading()
|
||||
}
|
||||
|
||||
let deviceId = localStorage.getItem('deviceId')
|
||||
if (deviceId) {
|
||||
config.headers['deviceId'] = localStorage.getItem('deviceId')
|
||||
}
|
||||
|
||||
// config.type 可以从api的接口地址定义 可以不触发loading
|
||||
if (config.noLoading !== true) {
|
||||
startLoading()
|
||||
|
||||
Reference in New Issue
Block a user