优化细节
This commit is contained in:
1
.vercel/project.json
Normal file
1
.vercel/project.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"projectName":"trae_template-10550_mhk8"}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
pages: [
|
pages: [
|
||||||
'pages/index/index',
|
'pages/index/index',
|
||||||
'pages/category/index',
|
|
||||||
'pages/order/order',
|
'pages/order/order',
|
||||||
'pages/cart/cart',
|
'pages/cart/cart',
|
||||||
'pages/user/user'
|
'pages/user/user'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {useEffect, useState} from "react";
|
import {useEffect, useState} from "react";
|
||||||
import {CmsArticle} from "@/api/cms/cmsArticle/model";
|
import {CmsArticle} from "@/api/cms/cmsArticle/model";
|
||||||
import {listCmsArticle} from "@/api/cms/cmsArticle";
|
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 {ArrowRight} from '@nutui/icons-react-taro'
|
||||||
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
|
import {CmsNavigation} from "@/api/cms/cmsNavigation/model";
|
||||||
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
|
import {listCmsNavigation} from "@/api/cms/cmsNavigation";
|
||||||
@@ -35,6 +35,16 @@ const Helper = () => {
|
|||||||
reload().then()
|
reload().then()
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
if (list.length == 0) {
|
||||||
|
return (
|
||||||
|
<div className={'text-center'}>
|
||||||
|
<View className={'text-gray-500'}>
|
||||||
|
暂无数据
|
||||||
|
</View>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'px-3'}>
|
<div className={'px-3'}>
|
||||||
<Cell>
|
<Cell>
|
||||||
|
|||||||
Reference in New Issue
Block a user