|
@@ -146,7 +146,8 @@ export default defineComponent({
|
|
|
|
|
|
//根据路由传参设置模式
|
|
|
const useRouteSetModelType = () => {
|
|
|
- const modelType: IModelType = search.modelType as IModelType
|
|
|
+ // 课后练习,只能选择练习模式
|
|
|
+ const modelType: IModelType = search.lessonTrainingId ? 'practice' : search.modelType as IModelType
|
|
|
if (modelType && modelType != 'evaluation') {
|
|
|
onChangeModelType(modelType)
|
|
|
}
|
|
@@ -235,7 +236,7 @@ export default defineComponent({
|
|
|
</Transition>
|
|
|
</div>
|
|
|
<div class={[styles.moreButton]} style={{ opacity: detailState.initRendered ? 1 : 0 }}>
|
|
|
- {!search?.modelType && modelType.value !== 'init' && !detailState.frozenMode && (
|
|
|
+ {!search?.modelType && modelType.value !== 'init' && !detailState.frozenMode && !detailState.isLessonTrain && (
|
|
|
<Button
|
|
|
data-step="m0"
|
|
|
class={[styles.button, styles.hasText]}
|