diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index 099351de..8120163e 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -1286,6 +1286,7 @@ export default { //编辑学习路径图 const editLearnPath = async () => { + debugger if (!state.pathName) { message.destroy(); return message.warning("请输入路径图名称"); @@ -1454,6 +1455,7 @@ export default { // state.imgData = ; // } }); + debugger const imgData = computed(() => store.state.router_pic); //添加权限 watch( @@ -1512,8 +1514,8 @@ export default { state.editPathId = id; let arr = imgData.value; arr.forEach((item) => { - if (item.dictValue === state.pathBg) { - state.pathBgId = item.dictCode; + if (item.value === state.pathBg) { + state.pathBgId = item.code; } });