feat: 病例列表联调
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, onUnmounted, reactive, ref } from 'vue'
|
||||
import { readStoredClinicalCase, type ClinicalCase } from '../../api/cases'
|
||||
import { readStoredClinicalCase, resolveClinicalCaseId, type ClinicalCase } from '../../api/cases'
|
||||
import {
|
||||
DEFAULT_SCENARIO_OPTIONS,
|
||||
createScenarioConfig,
|
||||
@@ -204,7 +204,10 @@ async function loadScenarioOptions() {
|
||||
options.value = fallback.options
|
||||
|
||||
try {
|
||||
const result = await fetchTrainingConfigOptions(1)
|
||||
const caseId = resolveClinicalCaseId(activeCase.value)
|
||||
if (!caseId) return
|
||||
|
||||
const result = await fetchTrainingConfigOptions(caseId)
|
||||
options.value = result.options
|
||||
Object.assign(form, result.recommended)
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user