fix:设置-编辑:点击编辑跳转报错

This commit is contained in:
caozc
2023-02-25 22:43:24 +08:00
parent afe9b38669
commit 0efc5e5485

View File

@@ -271,7 +271,7 @@ const projectPic = ref([]);
const courseSyncFlag = ref(true) const courseSyncFlag = ref(true)
onMounted(() => { onMounted(() => {
getDetail(); getDetail();
projectPic.value = store.state.projectPic.map((e) => ({ projectPic.value = store.state.project_pic.map((e) => ({
value: e.dictValue, value: e.dictValue,
label: e.dictName, label: e.dictName,
})); }));
@@ -298,6 +298,7 @@ const getDetail = () =>
const backPage = () => { const backPage = () => {
router.push({ router.push({
path: "/libraryAdd", path: "/libraryAdd",
query: { projectTemplateId : route.query.projectTemplateId}
}); });
}; };