From d1def9917de965ed7675a273c1c72d698cc6ae75 Mon Sep 17 00:00:00 2001 From: lpq Date: Mon, 20 Feb 2023 23:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9B=BE=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LearningPath.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } });