diff --git a/src/components/slide/SlideVertical.vue b/src/components/slide/SlideVertical.vue index 00434b6..aa0ae8e 100644 --- a/src/components/slide/SlideVertical.vue +++ b/src/components/slide/SlideVertical.vue @@ -35,7 +35,8 @@ const state = reactive({ next: false, start: { x: 0, y: 0, time: 0 }, move: { x: 0, y: 0 }, - wrapper: { width: 0, height: 0, childrenLength: 0 } + wrapper: { width: 0, height: 0, childrenLength: 0 }, + isDown: false }) watch( @@ -85,9 +86,9 @@ function canNext(isNext) {
diff --git a/src/utils/hooks/useNav.ts b/src/utils/hooks/useNav.ts index 3c7cb89..3ac2a46 100644 --- a/src/utils/hooks/useNav.ts +++ b/src/utils/hooks/useNav.ts @@ -6,7 +6,7 @@ export function useNav() { const router = useRouter() const store = useBaseStore() - return (path, query = {}, data) => { + return (path, query = {}, data?: any) => { if (data) { store.routeData = cloneDeep(data) }