diff --git a/frontend/src/views/plan/planList/components/planPopup.vue b/frontend/src/views/plan/planList/components/planPopup.vue index f90bd5a..1945aec 100644 --- a/frontend/src/views/plan/planList/components/planPopup.vue +++ b/frontend/src/views/plan/planList/components/planPopup.vue @@ -986,7 +986,7 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan: formContent.name = '' // 新建子计划允许选择数据源 const datasourceDicts = dictStore.getDictData('Datasource') - formContent.datasourceIds = datasourceDicts[0]?.code ?? '' + formContent.datasourceIds = [datasourceDicts[0]?.code] ?? [] formContent.memberIds = [] } generateData() diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index 7fe3c44..313ce1e 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -86,10 +86,9 @@ 子计划