diff --git a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue index 4fc2666..b45d81c 100644 --- a/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue +++ b/src/views/course/components/KnowledgeGraphUi/foldInfoUi.vue @@ -17,7 +17,7 @@
本章资源
- 删除 + 删除 diff --git a/src/views/course/courseChapters.vue b/src/views/course/courseChapters.vue index 507cbf2..7018416 100644 --- a/src/views/course/courseChapters.vue +++ b/src/views/course/courseChapters.vue @@ -16,8 +16,7 @@
- + @@ -91,9 +90,8 @@ function foldAddSubmit(data: any, updLoading: Function) { }).finally(() => updLoading(false)) } //删除章节 -const foldDelLoading = ref(false) -function flodDel(id: string) { - foldDelLoading.value = true +function flodDel(id: string,setLoading:Function) { + setLoading(true) deleteSectionApi(id).then(() => { ElMessage({ message: `删除成功`, @@ -105,7 +103,7 @@ function flodDel(id: string) { message: `删除失败`, type: 'error' }) - }).finally(() => foldDelLoading.value = false) + }).finally(() =>setLoading(false)) } // 更新章节 const showHide1 = ref(false)