提交 ba3c10b6 编写于 作者: 杜庆泉's avatar 杜庆泉

long-list 示例修改数据结构

上级 e27835aa
......@@ -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;
......
......@@ -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[]
}, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册