fix error

This commit is contained in:
Jay 2017-04-13 13:13:40 +08:00
parent e5bf72435c
commit efdc7e01c2
2 changed files with 10 additions and 8 deletions

View File

@ -89,6 +89,7 @@ class LocStatus extends React.Component{
render (){
let {i18n} = this.props;
console.log(this.state.list);
return (
<Container fluid>
<Segment className="clearfix">

View File

@ -7,6 +7,7 @@
* @return {string}
*/
export const padding = (str, lng = 0, arrow = -1, txt = '0') => {
if (!str) str = '';
if (typeof str != 'string') str = str.toString();
if (typeof txt != 'string') txt = txt.toString();
if (!isFinite(lng) || lng <= 0) return str;