From 360e2a57431b64ec14e2e5b7d07caf18c93c75da Mon Sep 17 00:00:00 2001 From: wanglu Date: Tue, 6 Sep 2022 16:04:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E7=AB=A0=E6=88=96=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E6=97=B6=E5=A2=9E=E5=8A=A0=E9=A6=96=E6=AC=A1=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=85=88=E5=88=9B=E5=BB=BA=E5=88=86=E7=B1=BB=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/admin/src/components/ImportArticleModal/index.jsx | 1 + packages/admin/src/components/ImportDraftModal/index.jsx | 1 + packages/admin/src/components/NewArticleModal/index.jsx | 1 + packages/admin/src/components/NewDraftModal/index.jsx | 1 + packages/admin/src/components/UpdateModal/index.tsx | 1 + 5 files changed, 5 insertions(+) diff --git a/packages/admin/src/components/ImportArticleModal/index.jsx b/packages/admin/src/components/ImportArticleModal/index.jsx index ec09133ab..2e1187fa4 100644 --- a/packages/admin/src/components/ImportArticleModal/index.jsx +++ b/packages/admin/src/components/ImportArticleModal/index.jsx @@ -88,6 +88,7 @@ export default function (props) { name="category" label="分类" placeholder="请选择分类" + tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类" rules={[{ required: true, message: '这是必填项' }]} request={async () => { const { data: categories } = await getAllCategories(); diff --git a/packages/admin/src/components/ImportDraftModal/index.jsx b/packages/admin/src/components/ImportDraftModal/index.jsx index 54f5315b3..d06343e76 100644 --- a/packages/admin/src/components/ImportDraftModal/index.jsx +++ b/packages/admin/src/components/ImportDraftModal/index.jsx @@ -81,6 +81,7 @@ export default function (props) { name="category" label="分类" placeholder="请选择分类" + tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类" rules={[{ required: true, message: '这是必填项' }]} request={async () => { const { data: categories } = await getAllCategories(); diff --git a/packages/admin/src/components/NewArticleModal/index.jsx b/packages/admin/src/components/NewArticleModal/index.jsx index be992ba34..2e5323b26 100644 --- a/packages/admin/src/components/NewArticleModal/index.jsx +++ b/packages/admin/src/components/NewArticleModal/index.jsx @@ -80,6 +80,7 @@ export default function (props) { required id="categoryC" name="categoryC" + tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类" label="分类" placeholder="请选择分类" rules={[{ required: true, message: '这是必填项' }]} diff --git a/packages/admin/src/components/NewDraftModal/index.jsx b/packages/admin/src/components/NewDraftModal/index.jsx index b6162893d..819e9dc05 100644 --- a/packages/admin/src/components/NewDraftModal/index.jsx +++ b/packages/admin/src/components/NewDraftModal/index.jsx @@ -65,6 +65,7 @@ export default function (props) { id="categoryC" name="categoryC" label="分类" + tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类" placeholder="请选择分类" rules={[{ required: true, message: '这是必填项' }]} request={async () => { diff --git a/packages/admin/src/components/UpdateModal/index.tsx b/packages/admin/src/components/UpdateModal/index.tsx index a23c0e1df..6729c2dd6 100644 --- a/packages/admin/src/components/UpdateModal/index.tsx +++ b/packages/admin/src/components/UpdateModal/index.tsx @@ -81,6 +81,7 @@ export default function (props: { width="md" required id="category" + tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类" name="category" label="分类" placeholder="请选择分类"