修正订单群聊与发布跳转
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user