fix(mobile): require employee position before user flow
This commit is contained in:
@@ -5,6 +5,7 @@ import type {
|
||||
SummaryCardResponse
|
||||
} from '@/types/api';
|
||||
import { apiRequest } from './api';
|
||||
import { getSelectedPosition } from './auth';
|
||||
|
||||
type RawKnowledgeSnippet = KnowledgeSnippet & {
|
||||
title?: string;
|
||||
@@ -24,6 +25,7 @@ export const searchKnowledge = async (queryText: string) => {
|
||||
data: {
|
||||
queryText,
|
||||
category: 'sop',
|
||||
position: getSelectedPosition(),
|
||||
limit: 5
|
||||
},
|
||||
timeout: 30000
|
||||
@@ -47,7 +49,7 @@ export const submitAnswerFeedback = (params: {
|
||||
fragmentIds: params.fragmentIds,
|
||||
verdict: params.verdict,
|
||||
category: 'sop',
|
||||
position: '生活顾问',
|
||||
position: getSelectedPosition(),
|
||||
source: 'mobile_uni_sop'
|
||||
},
|
||||
timeout: 15000
|
||||
|
||||
Reference in New Issue
Block a user