Skip to content

Commit

Permalink
feat: 标签和分类管理可以快速跳转到相应的前台页面”
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Aug 31, 2022
1 parent b0946f6 commit 8b7ea89
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/admin/src/pages/DataManage/tabs/Category.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ const columns = [
valueType: 'option',
width: 200,
render: (text, record, _, action) => [
<a
key="viewCategory"
onClick={() => {
window.open(`/category/${record.name}`, '_blank');
}}
>
查看
</a>,
<ModalForm
key={`editCateoryC%{${record.name}}`}
title={`修改分类 "${record.name}"`}
Expand Down
8 changes: 8 additions & 0 deletions packages/admin/src/pages/DataManage/tabs/Tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ const columns = [
valueType: 'option',
width: 200,
render: (text, record, _, action) => [
<a
key="viewTag"
onClick={() => {
window.open(`/tag/${record.name}`, '_blank');
}}
>
查看
</a>,
<ModalForm
key={`editCateoryC%{${record.name}}`}
title={`批量修改标签 "${record.name}"`}
Expand Down

0 comments on commit 8b7ea89

Please sign in to comment.