diff --git a/.vercel/project.json b/.vercel/project.json new file mode 100644 index 0000000..752ae2e --- /dev/null +++ b/.vercel/project.json @@ -0,0 +1 @@ +{"projectName":"trae_template-10550_mhk8"} \ No newline at end of file diff --git a/src/app.config.ts b/src/app.config.ts index 57fadb7..ecad27f 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -1,7 +1,6 @@ export default defineAppConfig({ pages: [ 'pages/index/index', - 'pages/category/index', 'pages/order/order', 'pages/cart/cart', 'pages/user/user' diff --git a/src/user/about/index.tsx b/src/user/about/index.tsx index 5bbae96..b179eba 100644 --- a/src/user/about/index.tsx +++ b/src/user/about/index.tsx @@ -1,7 +1,7 @@ import {useEffect, useState} from "react"; import {CmsArticle} from "@/api/cms/cmsArticle/model"; import {listCmsArticle} from "@/api/cms/cmsArticle"; -import {Collapse, Avatar, Cell, Divider} from '@nutui/nutui-react-taro' +import {Avatar, Cell, Divider} from '@nutui/nutui-react-taro' import {ArrowRight} from '@nutui/icons-react-taro' import {CmsNavigation} from "@/api/cms/cmsNavigation/model"; import {listCmsNavigation} from "@/api/cms/cmsNavigation"; @@ -35,6 +35,16 @@ const Helper = () => { reload().then() }, []); + if (list.length == 0) { + return ( +
+ + 暂无数据 + +
+ ) + } + return (