bug处理,插件版本同步

This commit is contained in:
2026-07-15 16:36:20 +08:00
parent 0911760e27
commit bf84da7783
12 changed files with 707 additions and 303 deletions
+16 -1
View File
@@ -366,6 +366,7 @@
import { ref, watch, onMounted, onBeforeUnmount, nextTick, computed } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import { useStore } from 'vuex'
import { createChannelBridge } from '@/utils/channelBridge'
import { JOB_TYPE_OPTIONS, formatEmploymentType, formatEducation } from '@/stores/index'
import SideNav from '@/components/SideNav.vue'
import AiChat from '@/components/AiChat.vue'
@@ -903,9 +904,23 @@ async function handleApplyMethodAction() {
if (!applyMethodChoice.value) return
if (applyMethodChoice.value === 'direct') {
// 直接前往官网
// 直接前往官网 — 同时跨域 put 链接给插件
showAgentRemindDialog.value = false
if (pendingApplyUrl.value) {
// 跨域推送投递链接到插件
const bridge = createChannelBridge({ domain: store.state.bridgeDomain })
try {
const existing = await bridge.get<{ linkList: string[] }>(store.state.bridgeDomain, 'offerpaiDeliveryLinkList', true)
const linkList: string[] = existing?.linkList || []
if (!linkList.includes(pendingApplyUrl.value)) {
linkList.push(pendingApplyUrl.value)
}
await bridge.put<{ linkList: string[] }>(store.state.bridgeDomain, 'offerpaiDeliveryLinkList', { linkList }, true)
} catch (e) {
console.error('[Jobs] 跨域 put 投递链接失败', e)
} finally {
bridge.destroy()
}
window.open(pendingApplyUrl.value, '_blank')
}
pendingApplyUrl.value = ''