- +
) diff --git a/src/forge/users/Material/Base.jsx b/src/forge/users/Material/Base.jsx index 578ae97f..7a200111 100644 --- a/src/forge/users/Material/Base.jsx +++ b/src/forge/users/Material/Base.jsx @@ -43,6 +43,7 @@ export default Form.create()( } Axios.put(url,params).then(result=>{ if(result && result.data){ + props.showNotification("资料修改成功!") resetUser && resetUser(result.data); } }).catch(error=>{}) diff --git a/src/forge/users/Statistics/Index.jsx b/src/forge/users/Statistics/Index.jsx index 282bff1d..457ddff0 100644 --- a/src/forge/users/Statistics/Index.jsx +++ b/src/forge/users/Statistics/Index.jsx @@ -84,7 +84,7 @@ function Index(props) { let percent = result.data.user && result.data.user.languages_percent; let arr = []; Object.keys(percent).map((item,key)=>{ - arr.push({name:item,p:percent[item]*100,color:getColor()}); + arr.push({name:item,p:parseFloat(percent[item]*100).toFixed(1),color:getColor()}); }) setPercentData(arr); } diff --git a/src/forge/users/Team.jsx b/src/forge/users/Team.jsx index a0b70f2f..7dabb47b 100644 --- a/src/forge/users/Team.jsx +++ b/src/forge/users/Team.jsx @@ -51,7 +51,7 @@ function Team(props){新建组织