Skip to content

Commit

Permalink
feat: 自定义页面的代码编辑器增加查看按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
Mereithhh committed Sep 3, 2022
1 parent a0ea105 commit 7a32948
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/admin/src/pages/Code/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ export default function () {
<Button key="saveBtn" type="primary" onClick={handleSave}>
保存
</Button>,
<Button
key="viewBtn"
onClick={() => {
window.open(`/custom${path}`);
}}
>
查看
</Button>,
<Button
key="backBtn"
onClick={() => {
Expand Down

0 comments on commit 7a32948

Please sign in to comment.