Skip to content

Commit 3d17292

Browse files
feat: add a default value for rename input box (#51)
* Update rename-post.ts * style: format code with prettier Co-authored-by: laggage <laggage-la@outlook.com>
1 parent 564f6dc commit 3d17292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/posts-list/rename-post.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const renamePost = async (post: Post) => {
4545
validateInput: v => {
4646
return v ? undefined : '请输入一个标题';
4747
},
48+
value: post.title,
4849
});
4950

5051
if (!input) {

0 commit comments

Comments
 (0)