feat: 数据处理向导默认数据类型改为结构化
创建页 processType 默认值与草稿恢复兜底由非结构化调整为结构化,更贴合主流使用场景。
This commit is contained in:
@@ -94,9 +94,9 @@ export function useDataProcessDraft(bindings: DraftBindings) {
|
||||
bindings.goToStep('create')
|
||||
bindings.task.name = snapshot.task?.name || ''
|
||||
bindings.task.description = snapshot.task?.description || ''
|
||||
bindings.processType.value = snapshot.processType === 'structured' || snapshot.processType === 'external'
|
||||
bindings.processType.value = snapshot.processType === 'unstructured' || snapshot.processType === 'external'
|
||||
? snapshot.processType
|
||||
: 'unstructured'
|
||||
: 'structured'
|
||||
|
||||
if (snapshot.structuredOptions) {
|
||||
bindings.structuredOptions.value = {
|
||||
|
||||
Reference in New Issue
Block a user