Skip to content

Commit

Permalink
refactor: 完善 API
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed May 28, 2023
1 parent 3dbd7d4 commit 70eb4d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -47,6 +47,7 @@
"zhi-common": "^1.6.2",
"zhi-device": "^0.7.3",
"zhi-env": "^1.17.2",
"zhi-lib-base": "^0.0.2",
"zhi-log": "^1.13.3",
"zhi-siyuan-api": "^1.3.2"
}
Expand Down
7 changes: 5 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/components/publish/PublishIndex.vue
Expand Up @@ -42,6 +42,7 @@ const METHOD_GET_USERS_BLOGS = "getUsersBlogs"
const METHOD_GET_RECENT_POSTS_COUNT = "getRecentPostsCount"
const METHOD_GET_RECENT_POSTS = "getRecentPosts"
const METHOD_NEW_POST = "newPost"
const METHOD_EDIT_POST = "editPost"
const methodOptions = reactive({
options: [
{
Expand All @@ -60,6 +61,10 @@ const methodOptions = reactive({
value: METHOD_NEW_POST,
label: "发布文章",
},
{
value: METHOD_EDIT_POST,
label: "编辑文章",
},
],
})
Expand Down

0 comments on commit 70eb4d2

Please sign in to comment.