|
@@ -90,11 +90,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
+import useDialogConfirm from "@/hooks/useDialogConfirm"
|
|
|
import { format } from "@/libs/tools"
|
|
|
import { useCurriculumDetail, useSetUpCourseware } from "@/views/curriculum"
|
|
|
import { handleStartClass_gym, isONLINE_gym } from "@/views/curriculum/hooks/useStartClass"
|
|
|
import { classImgType, classNameType } from "@/views/curriculum/type"
|
|
|
-import { ElMessage } from "element-plus"
|
|
|
|
|
|
const props = defineProps<{
|
|
|
classData: Record<string, any>
|
|
@@ -117,11 +117,10 @@ function handleClickDetail(id: string, coursewareEnable: boolean) {
|
|
|
return
|
|
|
}
|
|
|
if (!coursewareEnable) {
|
|
|
- ElMessage({
|
|
|
- showClose: true,
|
|
|
- message: "该资源已失效",
|
|
|
- grouping: true,
|
|
|
- type: "error"
|
|
|
+ useDialogConfirm({
|
|
|
+ headImg: require("@/img/curriculum/ts4.png"),
|
|
|
+ text: `该资源已失效`,
|
|
|
+ btnShow: [true]
|
|
|
})
|
|
|
return
|
|
|
}
|