feat(course): 支持考试类型资源的选择与上传

- 新增试卷列表获取逻辑,支持考试类型资源展示
- 优化文件上传校验,统一获取文件类型与大小限制
- 调整课程列表请求方法名,增强代码可读性
- 移除冗余的showDialog响应式变量
- 新增自定义考试按钮,区分不同资源类型的上传入口
- 更新文件基础URL配置,使用环境变量动态设置
- 引入试卷相关API模块,支持考试资源操作接口调用
- 扩展useCreateCourseMaps钩子,增加获取试卷列表方法
This commit is contained in:
陈昱达
2025-11-24 19:44:43 +08:00
parent 8d9775b77a
commit f07582d5c1
5 changed files with 166 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ export function useMediaComponent(props, emit) {
emit("update:dialogVideoForm", { ...localDialogVideoForm.value });
};
const fileBaseUrl = "http://home.hzer.xyz:9960/upload";
const fileBaseUrl = `${process.env.VUE_APP_BOE_API_URL}/upload`;
return {
localDialogVideoForm,