Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
00131332
authored
Jan 29, 2021
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加登录版本记录
parent
d1ef5c42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
app/reducers/module/login.js
app/reducers/module/login.js
View file @
00131332
...
@@ -6,7 +6,8 @@ import {
...
@@ -6,7 +6,8 @@ import {
EXIT_LOGIN
,
EXIT_LOGIN
,
AUTO_LOGIN_SUCCESS
,
AUTO_LOGIN_SUCCESS
,
AUTO_LOGIN_FAILURE
,
AUTO_LOGIN_FAILURE
,
SET_DOMAIN_CONFIGURATE
SET_DOMAIN_CONFIGURATE
,
SET_VERSION_APK
}
from
'../../base/ActionTypes'
;
}
from
'../../base/ActionTypes'
;
// 登录状态
// 登录状态
...
@@ -16,7 +17,8 @@ const defaultState = {
...
@@ -16,7 +17,8 @@ const defaultState = {
token
:
null
,
token
:
null
,
username
:
''
,
username
:
''
,
password
:
''
,
password
:
''
,
global_domain_config
:
'https://obs.uat.guke.tech'
,
global_domain_config
:
'https://obs.uat.guke.tech'
,
local_version_apk
:
''
,
// 默认【深圳仓】https://obs.uat.guke.tech;【十方uat】https://obs.uat.sfrx.guke.tech;【十方pro】https://obs.sfrx.orth.tech
// 默认【深圳仓】https://obs.uat.guke.tech;【十方uat】https://obs.uat.sfrx.guke.tech;【十方pro】https://obs.sfrx.orth.tech
// 【国药dev】https://obs.dev.guke.tech;【国药pro】https://obs-pro.gyjtsx.com
// 【国药dev】https://obs.dev.guke.tech;【国药pro】https://obs-pro.gyjtsx.com
// 【国药uat】https://obs-dev.gyjtsx.com
// 【国药uat】https://obs-dev.gyjtsx.com
...
@@ -61,6 +63,10 @@ export default login = (state = defaultState, action) => {
...
@@ -61,6 +63,10 @@ export default login = (state = defaultState, action) => {
return
Object
.
assign
({},
state
,
{
return
Object
.
assign
({},
state
,
{
global_domain_config
:
action
.
global_domain_config
global_domain_config
:
action
.
global_domain_config
})
})
case
SET_VERSION_APK
:
return
Object
.
assign
({},
state
,
{
local_version_apk
:
action
.
local_version_apk
})
default
:
// need this for default case
default
:
// need this for default case
return
state
return
state
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment