兼容处理点击更新崩溃问题。reviewed by yuliang。
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -140,7 +140,7 @@ export default function userReducer(state = initialState, action) { | @@ -140,7 +140,7 @@ export default function userReducer(state = initialState, action) { | ||
140 | 140 | ||
141 | case CHECK_UPDATE_SUCCESS: { | 141 | case CHECK_UPDATE_SUCCESS: { |
142 | let isLast = action.payload.lastVersion; | 142 | let isLast = action.payload.lastVersion; |
143 | - if (isLast) { | 143 | + if (isLast || !action.payload.url) { |
144 | return state.set('isShowUpdate', false); | 144 | return state.set('isShowUpdate', false); |
145 | } else { | 145 | } else { |
146 | return state.set('isShowUpdate', true) | 146 | return state.set('isShowUpdate', true) |
-
Please register or login to post a comment