Ver Fonte

履职计划选履职内容异常

jiawuxian há 2 anos atrás
pai
commit
0bb3caef29
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      src/views/resumption/plan/dialog.edit.vue

+ 5 - 2
src/views/resumption/plan/dialog.edit.vue

@@ -407,8 +407,11 @@ export default {
       // api.getPointIds(this.id).then((res) => {
       //   this.defaultSelect = res.data;
       // });
-
-      return this.tableData.map((d) => d.id);
+      if (!this.tableData) {
+        return [];
+      } else {
+        return this.tableData.map((d) => d.id);
+      }
     },
     openSelect() {
       this.$refs.DialogSelect.show(this.getIteamF());