Commit 00131332 by Denglingling

增加登录版本记录

parent d1ef5c42
Showing with 8 additions and 2 deletions
......@@ -6,7 +6,8 @@ import {
EXIT_LOGIN,
AUTO_LOGIN_SUCCESS,
AUTO_LOGIN_FAILURE,
SET_DOMAIN_CONFIGURATE
SET_DOMAIN_CONFIGURATE,
SET_VERSION_APK
} from '../../base/ActionTypes';
// 登录状态
......@@ -16,7 +17,8 @@ const defaultState = {
token:null,
username:'',
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
// 【国药dev】https://obs.dev.guke.tech;【国药pro】https://obs-pro.gyjtsx.com
// 【国药uat】https://obs-dev.gyjtsx.com
......@@ -61,6 +63,10 @@ export default login = (state = defaultState, action) => {
return Object.assign({}, state, {
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
return state
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment