From 707d5c23dbb1c3ee90d3f5f05ee79611193004a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 24 Jul 2025 19:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vercel/project.json | 1 + src/app.config.ts | 1 - src/user/about/index.tsx | 12 +++++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .vercel/project.json 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 ( +