mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
仅内网可见-管理员端 调试
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取课程信息
|
//获取课程信息
|
||||||
|
|||||||
Reference in New Issue
Block a user