From 763173de4426709537f1ce61b261f025d3df82fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sun, 22 May 2022 15:39:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=20=E8=B0=83=E6=95=B4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=EF=BC=8C=E5=8E=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../items/components/ProjectItemsList/hooks/useData.hook.ts | 1 - .../components/ProjectItemsList/hooks/useModal.hook.ts | 6 +++--- .../project/items/components/ProjectItemsList/index.vue | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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()