Fix download count error
This commit is contained in:
parent
07291e3363
commit
fa1138c2ce
|
@ -3,17 +3,10 @@ import './App.css';
|
|||
import PropTypes from 'prop-types';
|
||||
import {isWeiXin} from "../../utils/navigatorUtils";
|
||||
|
||||
function parseValue(value) {
|
||||
if (value < 10000) return value;
|
||||
return
|
||||
}
|
||||
|
||||
const CountComponent = ({ value }) => {
|
||||
if (value >= 10000) value = (value / 10000).toFixed(1);
|
||||
if (!isNaN(value)) {
|
||||
return <sup className="Gray">{value + "万"}</sup>
|
||||
}
|
||||
return null;
|
||||
if (isNaN(value)) return null;
|
||||
if (value >= 10000) value = (value / 10000).toFixed(1) + "万";
|
||||
return <sup className="Gray">{value}</sup>
|
||||
}
|
||||
|
||||
const WxMessage = () => {
|
||||
|
|
Loading…
Reference in New Issue