diff --git a/pages/component/long-list/long-list.uvue b/pages/component/long-list/long-list.uvue index 44351169300e0878c33ccc57fa657840e5c42104..f319335c3976d24fda6036f0787fccd82e937937 100644 --- a/pages/component/long-list/long-list.uvue +++ b/pages/component/long-list/long-list.uvue @@ -56,8 +56,8 @@ import { readFile, ReadFileOptions,ReadFileSuccessResult } from '@/uni_modules/u if (content != null){ const items = [] as Item[]; const jsonArr = JSON.parse(content); - jsonArr?.forEach((res)=>{ - const json = res as JSONObject; + jsonArr?.forEach((res)=>{ + const json = res as UTSJSONObject; const title = json["title"] as string; const subTitle = json["subTitle"] as string; const img = json["img"] as string; diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue index 653eb7f70b981f85f7b759fab824efeba761c98e..4ce3a748f48203b6476ee4bd7fcc38301b0f493c 100644 --- a/pages/tabBar/component.uvue +++ b/pages/tabBar/component.uvue @@ -68,11 +68,11 @@ */ { name: 'list(新闻)', - url: "pages/component/list/list", + url: "/pages/component/list/list", }, { name: 'list', - url: "pages/component/long-list/long-list", + url: "/pages/component/long-list/long-list", } ] as Page[] }, {