diff --git a/src/views/WorkLoadPage/I_Manage_ChildSystem.vue b/src/views/WorkLoadPage/I_Manage_ChildSystem.vue index 4084c7c..f7e5a7f 100644 --- a/src/views/WorkLoadPage/I_Manage_ChildSystem.vue +++ b/src/views/WorkLoadPage/I_Manage_ChildSystem.vue @@ -77,7 +77,8 @@ import request from "@/js/request.js"; const showButton = reactive([]); const AddModule = ref(false) - +const token = window.localStorage.getItem('token') +const id = window.localStorage.getItem('id') function showAddModal(){ AddModule.value = true; } @@ -93,7 +94,7 @@ onMounted(() => { request.projectWorkGet(data, token).then((res) => { ChildProjects.value = res.data.data; }) - request.moduleGetByProjectId(null, token).then((res) => { + request.moduleGetByProjectId(id, token).then((res) => { console.log("childModules:", res) ChildSystems.value = res.data.data })