diff --git a/src/views/project/items/components/ProjectItemsList/hooks/useData.hook.ts b/src/views/project/items/components/ProjectItemsList/hooks/useData.hook.ts index 3a740275..11bb0b8f 100644 --- a/src/views/project/items/components/ProjectItemsList/hooks/useData.hook.ts +++ b/src/views/project/items/components/ProjectItemsList/hooks/useData.hook.ts @@ -39,7 +39,6 @@ export const useDataListInit = () => { } }) } - } // 修改页数 diff --git a/src/views/project/items/components/ProjectItemsList/hooks/useModal.hook.ts b/src/views/project/items/components/ProjectItemsList/hooks/useModal.hook.ts index 89894b03..fc940401 100644 --- a/src/views/project/items/components/ProjectItemsList/hooks/useModal.hook.ts +++ b/src/views/project/items/components/ProjectItemsList/hooks/useModal.hook.ts @@ -1,7 +1,7 @@ import { ref, Ref } from 'vue' import { ChartEnum } from '@/enums/pageEnum' import { fetchPathByName, routerTurnByPath } from '@/utils' -import { Chartype } from '../../..' +import { Chartype } from '../../../index.d' export const useModalDataInit = () => { const modalShow = ref(false) const modalData = ref(null) @@ -14,14 +14,14 @@ export const useModalDataInit = () => { // 打开 modal const resizeHandle = (cardData: Chartype) => { - if(!cardData) return + if (!cardData) return modalShow.value = true modalData.value = cardData } // 打开 modal const editHandle = (cardData: Chartype) => { - if(!cardData) return + if (!cardData) return const path = fetchPathByName(ChartEnum.CHART_HOME_NAME, 'href') routerTurnByPath(path, [cardData.id], undefined, true) } diff --git a/src/views/project/items/components/ProjectItemsList/index.vue b/src/views/project/items/components/ProjectItemsList/index.vue index 9276347d..0013ff99 100644 --- a/src/views/project/items/components/ProjectItemsList/index.vue +++ b/src/views/project/items/components/ProjectItemsList/index.vue @@ -45,7 +45,7 @@ import { useDataListInit } from './hooks/useData.hook' const { CopyIcon, EllipsisHorizontalCircleSharpIcon } = icon.ionicons5 const { modalData, modalShow, closeModal, resizeHandle, editHandle } = useModalDataInit() -const { paginat, list, changeSize,changePage, fetchList, deleteHandle } = useDataListInit() +const { paginat, list, changeSize,changePage, deleteHandle } = useDataListInit()