mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
仅内网可见-管理员端 调试
This commit is contained in:
@@ -919,14 +919,18 @@ export default {
|
||||
this.courseInfo.coverImg = '';
|
||||
},
|
||||
//获取字典信息
|
||||
getDictIds() {
|
||||
console.log("--- 获取字典信息 1 = ",this.dicts)
|
||||
const { result, status } = apiCourse.getDictIds(637,1);
|
||||
console.log("--- 获取字典信息 2 result= ",result)
|
||||
if (status === 200) {
|
||||
console.log("--- 获取字典信息 3 = ",this.dicts)
|
||||
this.dicts = result.dicts;
|
||||
console.log("--- 获取字典信息 4 = ",this.dicts)
|
||||
async getDictIds() {
|
||||
console.log("--- 获取字典信息 1 = ", this.dicts);
|
||||
try {
|
||||
const response = await apiCourse.getDictIds(637, 1); // 确保返回 Promise
|
||||
console.log("--- 获取字典信息 2 result= ", response);
|
||||
|
||||
if (response.status === 200) {
|
||||
this.dicts = response.result.dicts; // 正确提取 dicts
|
||||
console.log("--- 获取字典信息 3 = ", this.dicts);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("获取字典信息失败:", error);
|
||||
}
|
||||
},
|
||||
//获取课程信息
|
||||
|
||||
Reference in New Issue
Block a user