diff --git a/src/views/App.jsx b/src/views/App.jsx index fa8a61f..34b288f 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -40,7 +40,6 @@ function App() { const href = useHref() const navigate = useNavigate() - // 除了路由 /p...以外都需要登陆系统 const needToLogin = href !== '/login' && isEmpty(loginToken) useEffect(() => { diff --git a/src/views/products/Detail/PriceCompactInput.jsx b/src/views/products/Detail/PriceCompactInput.jsx index 2485b52..320d6fa 100644 --- a/src/views/products/Detail/PriceCompactInput.jsx +++ b/src/views/products/Detail/PriceCompactInput.jsx @@ -19,7 +19,7 @@ const PriceCompactInput = (props) => { } const onNumberStartChange = (e) => { const newNumber = parseInt(e.target.value || '0', 10) - if (Number.isNaN(numberStart)) { + if (Number.isNaN(newNumber)) { return } if (!('numberStart' in value)) { @@ -31,7 +31,7 @@ const PriceCompactInput = (props) => { } const onNumberEndChange = (e) => { const newNumber = parseInt(e.target.value || '0', 10) - if (Number.isNaN(numberEnd)) { + if (Number.isNaN(newNumber)) { return } if (!('numberEnd' in value)) { @@ -43,7 +43,7 @@ const PriceCompactInput = (props) => { } const onAudultPriceChange = (e) => { const newNumber = parseInt(e.target.value || '0', 10) - if (Number.isNaN(audultPrice)) { + if (Number.isNaN(newNumber)) { return } if (!('audultPrice' in value)) { @@ -55,7 +55,7 @@ const PriceCompactInput = (props) => { } const onChildrenPriceChange = (e) => { const newNumber = parseInt(e.target.value || '0', 10) - if (Number.isNaN(childrenPrice)) { + if (Number.isNaN(newNumber)) { return } if (!('childrenPrice' in value)) { @@ -106,8 +106,4 @@ const PriceCompactInput = (props) => { ) } -<<<<<<< HEAD export default PriceCompactInput -======= -export default PriceCompactInput ->>>>>>> acaf5a3de7b7197af62517e06d7fdbb7a4a48ace