修正订单群聊与发布跳转

This commit is contained in:
yml
2026-06-18 09:45:36 +08:00
parent f4361c9804
commit 58e071d157
5 changed files with 184 additions and 2 deletions
@@ -47,6 +47,7 @@ const multiScreenshotKeys = new Set(['tencentSecurity', 'skin'])
interface UsePublishFormOptions {
draftKey: string
submitSuccessPath: string
listingGroupChatPathPrefix?: string
persistBeforeUnload?: boolean
confirmReset?: () => Promise<void>
notifySuccess: (message: string) => void
@@ -701,7 +702,8 @@ export function usePublishForm(options: UsePublishFormOptions) {
)
// 新建发布成功后,若已自动建立发布群,跳进该群让号主立即看到欢迎语+二维码
if (!isEditMode.value && listing.listing_group_conversation_id) {
await router.push(`/messages/${listing.listing_group_conversation_id}`)
const chatPathPrefix = options.listingGroupChatPathPrefix || '/messages/'
await router.push(`${chatPathPrefix}${listing.listing_group_conversation_id}`)
} else {
await router.push(options.submitSuccessPath)
}