Skip to content

Commit

Permalink
fix: disable new version alert when REACT_APP_VERSION is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Nov 23, 2022
1 parent db13ee6 commit 640fad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ function App() {
localStorage.setItem('footer_html', data.footer_html);
if (
data.version !== process.env.REACT_APP_VERSION &&
data.version !== 'v0.0.0'
data.version !== 'v0.0.0' &&
process.env.REACT_APP_VERSION !== ''
) {
showNotice(
`新版本可用:${data.version},请使用快捷键 Shift + F5 刷新页面`
Expand Down

0 comments on commit 640fad7

Please sign in to comment.