洪海涛 4 年 前
コミット
1fc7ba62d1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/store/modules/monthlyReport/baseMixin/actions.js

+ 2 - 2
src/store/modules/monthlyReport/baseMixin/actions.js

@@ -125,10 +125,10 @@ export default {
       })
 
       // 设置端数据
-      if (res.data.dependence.clientType) {
+      if (res.data.dependence && res.data.dependence.clientType) {
         state.clientTypeList = [...res.data.dependence.clientType]
+        setDeptArch(state.clientTypeList)
       }
-      setDeptArch(state.clientTypeList)
       commit('SET_LOADING', false)
       // 设置月报子标题
       setTimeout(() => {