diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index 4a616bc0d..b599df06a 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -37,7 +37,7 @@ const userStore = useUserStore(); const handleLogout = () => { Dialog.warning({ - title: "是否确认退出登录?", + title: "确定要退出登录吗?", onConfirm: async () => { try { await axios.post(`${import.meta.env.VITE_API_URL}/logout`, undefined, { diff --git a/src/modules/contents/attachments/components/AttachmentGroupList.vue b/src/modules/contents/attachments/components/AttachmentGroupList.vue index 8f78feee2..afc103d23 100644 --- a/src/modules/contents/attachments/components/AttachmentGroupList.vue +++ b/src/modules/contents/attachments/components/AttachmentGroupList.vue @@ -91,9 +91,8 @@ const onEditingModalClose = () => { const handleDelete = (group: Group) => { Dialog.warning({ - title: "是否确认删除该分组?", - description: - "此操作将删除分组,并将分组下的附件移动至未分组,此操作无法恢复。", + title: "确定要删除该分组吗?", + description: "将删除分组,并将分组下的附件移动至未分组,该操作不可恢复。", confirmType: "danger", onConfirm: async () => { // TODO: 后续将修改为在后端进行批量操作处理 @@ -131,8 +130,8 @@ const handleDelete = (group: Group) => { const handleDeleteWithAttachments = (group: Group) => { Dialog.warning({ - title: "是否确认删除该分组?", - description: "此操作将删除分组以及分组下的所有附件,此操作无法恢复。", + title: "确定要删除该分组吗?", + description: "将删除分组以及分组下的所有附件,该操作不可恢复。", confirmType: "danger", onConfirm: async () => { // TODO: 后续将修改为在后端进行批量操作处理 diff --git a/src/modules/contents/attachments/components/AttachmentPoliciesModal.vue b/src/modules/contents/attachments/components/AttachmentPoliciesModal.vue index 53c105c61..67d826a3d 100644 --- a/src/modules/contents/attachments/components/AttachmentPoliciesModal.vue +++ b/src/modules/contents/attachments/components/AttachmentPoliciesModal.vue @@ -91,7 +91,7 @@ const handleDelete = async (policy: Policy) => { } Dialog.warning({ - title: "确定删除该策略吗?", + title: "确定要删除该策略吗?", description: "当前策略下没有已上传的附件。", onConfirm: async () => { await apiClient.extension.storage.policy.deletestorageHaloRunV1alpha1Policy( diff --git a/src/modules/contents/comments/CommentList.vue b/src/modules/contents/comments/CommentList.vue index fb7483d82..b74169a70 100644 --- a/src/modules/contents/comments/CommentList.vue +++ b/src/modules/contents/comments/CommentList.vue @@ -157,7 +157,7 @@ const handleDeleteInBatch = async () => { const handleApproveInBatch = async () => { Dialog.warning({ - title: "确定要审核通过所选评论吗?", + title: "确定要审核通过所选的评论吗?", onConfirm: async () => { try { const commentsToUpdate = comments.value.items.filter((comment) => { diff --git a/src/modules/contents/comments/components/CommentListItem.vue b/src/modules/contents/comments/components/CommentListItem.vue index 22dc9eb18..dbf99efa0 100644 --- a/src/modules/contents/comments/components/CommentListItem.vue +++ b/src/modules/contents/comments/components/CommentListItem.vue @@ -57,7 +57,7 @@ provide>("hoveredReply", hoveredReply); const handleDelete = async () => { Dialog.warning({ - title: "是否确认删除该评论?", + title: "确认要删除该评论吗?", description: "删除评论的同时会删除该评论下的所有回复,该操作不可恢复。", confirmType: "danger", onConfirm: async () => { diff --git a/src/modules/contents/comments/components/ReplyListItem.vue b/src/modules/contents/comments/components/ReplyListItem.vue index f487f10eb..56640db10 100644 --- a/src/modules/contents/comments/components/ReplyListItem.vue +++ b/src/modules/contents/comments/components/ReplyListItem.vue @@ -45,7 +45,7 @@ const quoteReply = computed(() => { const handleDelete = async () => { Dialog.warning({ - title: "是否确认删除该回复?", + title: "确认要删除该回复吗?", description: "该操作不可恢复。", confirmType: "danger", onConfirm: async () => { diff --git a/src/modules/contents/pages/DeletedSinglePageList.vue b/src/modules/contents/pages/DeletedSinglePageList.vue index 5521cb834..9a9164469 100644 --- a/src/modules/contents/pages/DeletedSinglePageList.vue +++ b/src/modules/contents/pages/DeletedSinglePageList.vue @@ -122,7 +122,7 @@ const handleCheckAllChange = (e: Event) => { const handleDeletePermanently = async (singlePage: SinglePage) => { Dialog.warning({ - title: "是否确认永久删除该自定义页面?", + title: "确认要永久删除该自定义页面吗?", description: "删除之后将无法恢复", confirmType: "danger", onConfirm: async () => { @@ -138,7 +138,7 @@ const handleDeletePermanently = async (singlePage: SinglePage) => { const handleDeletePermanentlyInBatch = async () => { Dialog.warning({ - title: "是否确认永久删除选中的自定义页面?", + title: "确定要确认永久删除选中的自定义页面吗?", description: "删除之后将无法恢复", confirmType: "danger", onConfirm: async () => { @@ -159,8 +159,8 @@ const handleDeletePermanentlyInBatch = async () => { const handleRecovery = async (singlePage: SinglePage) => { Dialog.warning({ - title: "是否确认恢复该自定义页面?", - description: "此操作会将自定义页面恢复到被删除之前的状态", + title: "确认要恢复该自定义页面吗?", + description: "该操作会将自定义页面恢复到被删除之前的状态", onConfirm: async () => { const singlePageToUpdate = cloneDeep(singlePage); singlePageToUpdate.spec.deleted = false; @@ -177,8 +177,8 @@ const handleRecovery = async (singlePage: SinglePage) => { const handleRecoveryInBatch = async () => { Dialog.warning({ - title: "是否确认恢复选中的自定义页面?", - description: "此操作会将自定义页面恢复到被删除之前的状态", + title: "确认要恢复选中的自定义页面吗?", + description: "该操作会将自定义页面恢复到被删除之前的状态", onConfirm: async () => { await Promise.all( selectedPageNames.value.map((name) => { diff --git a/src/modules/contents/pages/SinglePageList.vue b/src/modules/contents/pages/SinglePageList.vue index f0511e563..256fd9cb2 100644 --- a/src/modules/contents/pages/SinglePageList.vue +++ b/src/modules/contents/pages/SinglePageList.vue @@ -215,8 +215,8 @@ const handleCheckAllChange = (e: Event) => { const handleDelete = async (singlePage: SinglePage) => { Dialog.warning({ - title: "是否确认删除该自定义页面?", - description: "此操作会将自定义页面放入回收站,后续可以从回收站恢复", + title: "确定要删除该自定义页面吗?", + description: "该操作会将自定义页面放入回收站,后续可以从回收站恢复", confirmType: "danger", onConfirm: async () => { const singlePageToUpdate = cloneDeep(singlePage); @@ -234,8 +234,8 @@ const handleDelete = async (singlePage: SinglePage) => { const handleDeleteInBatch = async () => { Dialog.warning({ - title: "是否确认删除选中的自定义页面?", - description: "此操作会将自定义页面放入回收站,后续可以从回收站恢复", + title: "确定要删除选中的自定义页面吗?", + description: "该操作会将自定义页面放入回收站,后续可以从回收站恢复", confirmType: "danger", onConfirm: async () => { await Promise.all( diff --git a/src/modules/contents/posts/DeletedPostList.vue b/src/modules/contents/posts/DeletedPostList.vue index 356db96b3..af5296f4c 100644 --- a/src/modules/contents/posts/DeletedPostList.vue +++ b/src/modules/contents/posts/DeletedPostList.vue @@ -116,7 +116,7 @@ const handleCheckAllChange = (e: Event) => { const handleDeletePermanently = async (post: Post) => { Dialog.warning({ - title: "是否确认永久删除该文章?", + title: "确定要永久删除该文章吗?", description: "删除之后将无法恢复", confirmType: "danger", onConfirm: async () => { @@ -130,7 +130,7 @@ const handleDeletePermanently = async (post: Post) => { const handleDeletePermanentlyInBatch = async () => { Dialog.warning({ - title: "是否确认永久删除选中的文章?", + title: "确定要永久删除选中的文章吗?", description: "删除之后将无法恢复", confirmType: "danger", onConfirm: async () => { @@ -149,8 +149,8 @@ const handleDeletePermanentlyInBatch = async () => { const handleRecovery = async (post: Post) => { Dialog.warning({ - title: "是否确认恢复该文章?", - description: "此操作会将文章恢复到被删除之前的状态", + title: "确定要恢复该文章吗?", + description: "该操作会将文章恢复到被删除之前的状态", onConfirm: async () => { const postToUpdate = cloneDeep(post); postToUpdate.spec.deleted = false; @@ -165,8 +165,8 @@ const handleRecovery = async (post: Post) => { const handleRecoveryInBatch = async () => { Dialog.warning({ - title: "是否确认恢复选中的文章?", - description: "此操作会将文章恢复到被删除之前的状态", + title: "确定要恢复选中的文章吗?", + description: "该操作会将文章恢复到被删除之前的状态", onConfirm: async () => { await Promise.all( selectedPostNames.value.map((name) => { diff --git a/src/modules/contents/posts/PostList.vue b/src/modules/contents/posts/PostList.vue index 3e5853db7..5a5d106e8 100644 --- a/src/modules/contents/posts/PostList.vue +++ b/src/modules/contents/posts/PostList.vue @@ -247,8 +247,8 @@ const handleCheckAllChange = (e: Event) => { const handleDelete = async (post: Post) => { Dialog.warning({ - title: "是否确认删除该文章?", - description: "此操作会将文章放入回收站,后续可以从回收站恢复", + title: "确定要删除该文章吗?", + description: "该操作会将文章放入回收站,后续可以从回收站恢复", confirmType: "danger", onConfirm: async () => { await apiClient.post.recyclePost({ @@ -261,8 +261,8 @@ const handleDelete = async (post: Post) => { const handleDeleteInBatch = async () => { Dialog.warning({ - title: "是否确认删除选中的文章?", - description: "此操作会将文章放入回收站,后续可以从回收站恢复", + title: "确定要删除选中的文章吗?", + description: "该操作会将文章放入回收站,后续可以从回收站恢复", confirmType: "danger", onConfirm: async () => { await Promise.all( diff --git a/src/modules/interface/themes/ThemeDetail.vue b/src/modules/interface/themes/ThemeDetail.vue index e0a8b7ff1..1aa6a781c 100644 --- a/src/modules/interface/themes/ThemeDetail.vue +++ b/src/modules/interface/themes/ThemeDetail.vue @@ -27,8 +27,8 @@ const upgradeModal = ref(false); const handleReloadTheme = async () => { Dialog.warning({ - title: "是否确认重载主题的所有配置?", - description: "此操作仅会重载主题配置和设置表单定义,不会删除已保存的配置。", + title: "确定要重载主题的所有配置吗?", + description: "该操作仅会重载主题配置和设置表单定义,不会删除已保存的配置。", onConfirm: async () => { try { if (!selectedTheme?.value) { diff --git a/src/modules/interface/themes/components/ThemeListModal.vue b/src/modules/interface/themes/components/ThemeListModal.vue index ea0a2d2c5..d3c92d074 100644 --- a/src/modules/interface/themes/components/ThemeListModal.vue +++ b/src/modules/interface/themes/components/ThemeListModal.vue @@ -108,10 +108,10 @@ const handleUninstall = async (theme: Theme, deleteExtensions?: boolean) => { Dialog.warning({ title: `${ deleteExtensions - ? "是否确认删除该主题以及对应的配置?" - : "是否确认删除该主题?" + ? "确定要删除该主题以及对应的配置吗?" + : "确定要删除该主题吗?" }`, - description: "删除后将无法恢复。", + description: "该操作不可恢复。", onConfirm: async () => { try { await apiClient.extension.theme.deletethemeHaloRunV1alpha1Theme({ diff --git a/src/modules/system/plugins/composables/use-plugin.ts b/src/modules/system/plugins/composables/use-plugin.ts index 49dba2b0a..b49f002ec 100644 --- a/src/modules/system/plugins/composables/use-plugin.ts +++ b/src/modules/system/plugins/composables/use-plugin.ts @@ -51,8 +51,8 @@ export function usePluginLifeCycle( Dialog.warning({ title: `${ deleteExtensions - ? "是否确认卸载该插件以及对应的配置?" - : "是否确认卸载该插件?" + ? "确定要卸载该插件以及对应的配置吗?" + : "确定要卸载该插件吗?" }`, description: `${ enabled ? "当前插件还在启用状态,将在停止运行后卸载。" : "" diff --git a/src/modules/system/roles/RoleList.vue b/src/modules/system/roles/RoleList.vue index 134c0526d..350867788 100644 --- a/src/modules/system/roles/RoleList.vue +++ b/src/modules/system/roles/RoleList.vue @@ -83,8 +83,8 @@ const handleCloneRole = (role: Role) => { const handleDelete = async (role: Role) => { Dialog.warning({ - title: "是否确定删除该权限?", - description: "此权限删除之后,相关联的用户将被删除角色绑定,此操作不可恢复", + title: "确定要删除该角色吗?", + description: "该角色删除后,相关联的用户将被删除角色绑定,该操作不可恢复", confirmType: "danger", onConfirm: async () => { try { diff --git a/src/modules/system/users/UserList.vue b/src/modules/system/users/UserList.vue index 783ad6b99..39d3b5715 100644 --- a/src/modules/system/users/UserList.vue +++ b/src/modules/system/users/UserList.vue @@ -121,7 +121,8 @@ const handleDelete = async (user: User) => { const handleDeleteInBatch = async () => { Dialog.warning({ - title: "是否确认删除选中的用户?", + title: "确定要删除选中的用户吗?", + description: "该操作不可恢复。", confirmType: "danger", onConfirm: async () => { const userNamesToDelete = selectedUserNames.value.filter(