Skip to content

Commit

Permalink
feat: 保存成功后收起整个剪藏工具面板 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX authored Jul 25, 2023
1 parent 11b9187 commit 0f8f320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/sandbox/SaveTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const useViewModel = props => {

const onSuccess = () => {
setEditorValue([]);
setCurrentType(null);
};

const onError = () => {
Expand Down Expand Up @@ -351,6 +352,7 @@ const SaveTo = props => {
<Radio.Group
buttonStyle="solid"
size="small"
value={currentType}
onChange={e => onSelectType(e.target.value)}
>
<Space direction="vertical">
Expand Down

0 comments on commit 0f8f320

Please sign in to comment.