Forráskód Böngészése

修改提示信息不存在判断条件

zhangxc 6 éve
szülő
commit
2fdc3feca8
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/store/async-actions/pushMessage.js

+ 1 - 1
src/store/async-actions/pushMessage.js

@@ -136,7 +136,7 @@ export const getConceptDetail = (item) => {
         }
 
         json(api.getConceptDetail, params).then((res) => {
-            if(res.data.code == '0') {
+            if(res.data.code == '0'&& res.data.data.details && res.data.data.details.length > 0) {
                 if(item.position == '1') {  //右侧提示信息
                     dispatch({
                         type: SET_CLICK_DIAG,