Skip to content

Commit

Permalink
feat: 后台创建修改文章或草稿时增加首次使用先创建分类的提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 6, 2022
1 parent 5254186 commit 360e2a5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/admin/src/components/ImportArticleModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function (props) {
name="category"
label="分类"
placeholder="请选择分类"
tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类"
rules={[{ required: true, message: '这是必填项' }]}
request={async () => {
const { data: categories } = await getAllCategories();
Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/components/ImportDraftModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default function (props) {
name="category"
label="分类"
placeholder="请选择分类"
tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类"
rules={[{ required: true, message: '这是必填项' }]}
request={async () => {
const { data: categories } = await getAllCategories();
Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/components/NewArticleModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export default function (props) {
required
id="categoryC"
name="categoryC"
tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类"
label="分类"
placeholder="请选择分类"
rules={[{ required: true, message: '这是必填项' }]}
Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/components/NewDraftModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default function (props) {
id="categoryC"
name="categoryC"
label="分类"
tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类"
placeholder="请选择分类"
rules={[{ required: true, message: '这是必填项' }]}
request={async () => {
Expand Down
1 change: 1 addition & 0 deletions packages/admin/src/components/UpdateModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default function (props: {
width="md"
required
id="category"
tooltip="首次使用请先在站点管理-数据管理-分类管理中添加分类"
name="category"
label="分类"
placeholder="请选择分类"
Expand Down

0 comments on commit 360e2a5

Please sign in to comment.