Skip to content

Commit

Permalink
feat(script): 添加新版职教云DOC文档学习功能
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Sep 12, 2023
1 parent 63913b2 commit 9a5babd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scripts/src/projects/zjy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { playMedia } from '../utils';
import { $console } from './background';

type CourseType = {
fileType: 'ppt' | 'video';
fileType: string;
id: string;
name: string;
};
Expand Down Expand Up @@ -88,7 +88,7 @@ export const ZJYProject = Project.create({
if (!courseInfo) return;
$message('success', { content: '开始学习:' + courseInfo.name });
$console.info('开始学习:' + courseInfo.name);
if (courseInfo.fileType === 'ppt') {
if (courseInfo.fileType === 'ppt' || courseInfo.fileType === 'doc') {
await watchFile();
} else if (courseInfo.fileType === 'video') {
if ($el('.guide')?.innerHTML.includes('很抱歉,您的浏览器不支持播放此类文件')) {
Expand Down

0 comments on commit 9a5babd

Please sign in to comment.