fix(mobile): require employee position before user flow

This commit is contained in:
2026-07-09 17:09:26 +08:00
parent 8b92a7e9ac
commit 8f73cb0c84
13 changed files with 473 additions and 33 deletions
+2 -1
View File
@@ -14,7 +14,7 @@ import type {
PromotionEvidence
} from '@/types/api';
import { apiRequest } from './api';
import { getAuth } from './auth';
import { getAuth, getSelectedPosition } from './auth';
const defaultScenarioId = 'complaint-water';
@@ -40,6 +40,7 @@ export const startPractice = (scenarioId = defaultScenarioId, assignmentId?: num
data: {
extPartyId: currentExtPartyId(),
scenarioId,
position: getSelectedPosition(),
mode: 'mobile',
assignmentId
},