fix(aihr): harden broadcast and mobile assistant flows
This commit is contained in:
@@ -310,23 +310,6 @@ const primaryScheduleTitle = computed(() => {
|
||||
return '';
|
||||
});
|
||||
|
||||
const assignmentSourceLabel = (source?: string) => {
|
||||
if (source === 'daily') return '每日三题';
|
||||
if (source === 'retry') return '错题再练';
|
||||
if (source === 'camp') return '训练营';
|
||||
return '专项训练';
|
||||
};
|
||||
|
||||
const primaryAssignmentSourceLabel = computed(() =>
|
||||
primaryAssignment.value ? assignmentSourceLabel(primaryAssignment.value.source) : ''
|
||||
);
|
||||
|
||||
const primaryDisplayTitle = computed(() => {
|
||||
const label = primaryAssignmentSourceLabel.value;
|
||||
const title = primaryScheduleTitle.value;
|
||||
return label && title ? `${label}:${title}` : title;
|
||||
});
|
||||
|
||||
const primaryScheduleDesc = computed(() => {
|
||||
const item = primaryAssignment.value;
|
||||
if (item) {
|
||||
|
||||
Reference in New Issue
Block a user