diff --git a/package.json b/package.json index 0dad310..406d676 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4880b18..fbbbc70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,6 +31,9 @@ dependencies: zhi-env: specifier: ^1.17.2 version: 1.17.2 + zhi-lib-base: + specifier: ^0.0.2 + version: 0.0.2 zhi-log: specifier: ^1.13.3 version: 1.13.3 @@ -2030,7 +2033,7 @@ packages: resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==} dependencies: '@gar/promisify': 1.1.3 - semver: 7.3.8 + semver: 7.5.1 dev: true /@npmcli/move-file@1.1.2: @@ -2826,7 +2829,7 @@ packages: recast: 0.21.5 remark-frontmatter: 4.0.1 remark-mdx-frontmatter: 1.1.1 - semver: 7.3.8 + semver: 7.5.1 sort-package-json: 1.57.0 tar-fs: 2.1.1 tsconfig-paths: 4.2.0 diff --git a/src/components/publish/PublishIndex.vue b/src/components/publish/PublishIndex.vue index 477d51e..c4db4d3 100644 --- a/src/components/publish/PublishIndex.vue +++ b/src/components/publish/PublishIndex.vue @@ -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: [ { @@ -60,6 +61,10 @@ const methodOptions = reactive({ value: METHOD_NEW_POST, label: "发布文章", }, + { + value: METHOD_EDIT_POST, + label: "编辑文章", + }, ], })