仅内网可见-管理员端 调试

This commit is contained in:
670788339
2025-07-23 17:28:36 +08:00
parent 3485435c9e
commit 5276813eba

View File

@@ -919,14 +919,18 @@ export default {
this.courseInfo.coverImg = ''; this.courseInfo.coverImg = '';
}, },
//获取字典信息 //获取字典信息
getDictIds() { async getDictIds() {
console.log("--- 获取字典信息 1 = ",this.dicts) console.log("--- 获取字典信息 1 = ", this.dicts);
const { result, status } = apiCourse.getDictIds(637,1); try {
console.log("--- 获取字典信息 2 result= ",result) const response = await apiCourse.getDictIds(637, 1); // 确保返回 Promise
if (status === 200) { console.log("--- 获取字典信息 2 result= ", response);
console.log("--- 获取字典信息 3 = ",this.dicts)
this.dicts = result.dicts; if (response.status === 200) {
console.log("--- 获取字典信息 4 = ",this.dicts) this.dicts = response.result.dicts; // 正确提取 dicts
console.log("--- 获取字典信息 3 = ", this.dicts);
}
} catch (error) {
console.error("获取字典信息失败:", error);
} }
}, },
//获取课程信息 //获取课程信息