Commit 0e787c26 by peii

bug修复

parent 2b776527
Showing with 1 additions and 2 deletions
...@@ -177,11 +177,10 @@ export function getSysProfiles() { ...@@ -177,11 +177,10 @@ export function getSysProfiles() {
} }
requestSysProfile(global_domain_config, params).then(res => { requestSysProfile(global_domain_config, params).then(res => {
console.log(profile_code, res) console.log(profile_code, res)
if (res.error_code === 0) {
let value = R.pathOr(originSysProfiles[profile_code], ['data', 'profile_value'])(res) let value = R.pathOr(originSysProfiles[profile_code], ['data', 'profile_value'])(res)
if (isNotBlank(value) && !isNaN(value)) value = parseInt(value) if (isNotBlank(value) && !isNaN(value)) value = parseInt(value)
dispatch(setSysProfiles(profile_code, value)) dispatch(setSysProfiles(profile_code, value))
}
}) })
} }
......
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