From 218573ab2ea0feafdfc76981bac537ae837b9890 Mon Sep 17 00:00:00 2001 From: IlhamTahir Date: Wed, 4 Dec 2024 21:14:14 +0800 Subject: [PATCH] fix: conflict --- src/auto-imports.d.ts | 5 +++-- src/pages.json | 5 +++++ src/pages/pet-manual/index.vue | 4 +--- src/uni-pages.d.ts | 3 ++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index a3a09be..c5ecd8d 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -35,7 +35,6 @@ declare global { const extendRef: typeof import('@vueuse/core')['extendRef'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] - const getSafeHeight: typeof import('./utils/index')['getSafeHeight'] const h: typeof import('vue')['h'] const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch'] const inject: typeof import('vue')['inject'] @@ -133,6 +132,7 @@ declare global { const until: typeof import('@vueuse/core')['until'] const useActiveElement: typeof import('@vueuse/core')['useActiveElement'] const useAnimate: typeof import('@vueuse/core')['useAnimate'] + const useAppStore: typeof import('./stores/app')['useAppStore'] const useArrayDifference: typeof import('@vueuse/core')['useArrayDifference'] const useArrayEvery: typeof import('@vueuse/core')['useArrayEvery'] const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter'] @@ -352,7 +352,6 @@ declare module 'vue' { readonly extendRef: UnwrapRef readonly getCurrentInstance: UnwrapRef readonly getCurrentScope: UnwrapRef - readonly getSafeHeight: UnwrapRef readonly h: UnwrapRef readonly ignorableWatch: UnwrapRef readonly inject: UnwrapRef @@ -450,6 +449,7 @@ declare module 'vue' { readonly until: UnwrapRef readonly useActiveElement: UnwrapRef readonly useAnimate: UnwrapRef + readonly useAppStore: UnwrapRef readonly useArrayDifference: UnwrapRef readonly useArrayEvery: UnwrapRef readonly useArrayFilter: UnwrapRef @@ -611,6 +611,7 @@ declare module 'vue' { readonly useWindowFocus: UnwrapRef readonly useWindowScroll: UnwrapRef readonly useWindowSize: UnwrapRef + readonly utils: UnwrapRef readonly watch: UnwrapRef readonly watchArray: UnwrapRef readonly watchAtMost: UnwrapRef diff --git a/src/pages.json b/src/pages.json index b9d5964..bc5d583 100644 --- a/src/pages.json +++ b/src/pages.json @@ -21,6 +21,10 @@ { "path": "pages/pet-manual/index", "type": "page" + }, + { + "path": "pages/pet-manual/components/CardList", + "type": "page" } ], "globalStyle": { @@ -33,5 +37,6 @@ "navigationBarTitleText": "Vitesse-Uni", "navigationStyle": "custom" }, + "__esModule": true, "subPackages": [] } \ No newline at end of file diff --git a/src/pages/pet-manual/index.vue b/src/pages/pet-manual/index.vue index 21de306..1685926 100644 --- a/src/pages/pet-manual/index.vue +++ b/src/pages/pet-manual/index.vue @@ -122,9 +122,7 @@ const findList = ref<{ name: string }[]>([ { name: '猫咪尿闭怎么办' }, ]) function onLoad() { - carousalApi.getCarousalList().then((res) => { - console.log(res) - }) + carousalApi.getCarousalList() } onLoad() diff --git a/src/uni-pages.d.ts b/src/uni-pages.d.ts index f9e690a..77b405b 100644 --- a/src/uni-pages.d.ts +++ b/src/uni-pages.d.ts @@ -7,7 +7,8 @@ interface NavigateToOptions { url: "/pages/feed-plan/index" | "/pages/home/index" | "/pages/me/index" | - "/pages/pet-manual/index"; + "/pages/pet-manual/index" | + "/pages/pet-manual/components/CardList"; } interface RedirectToOptions extends NavigateToOptions {}