移动端页面缩放

This commit is contained in:
2026-05-26 10:26:46 +08:00
parent 5b00d02d72
commit 67dd441502
10 changed files with 242 additions and 6 deletions
+26
View File
@@ -157,6 +157,9 @@
</div>
</div>
</div>
<!-- 求职目标设置弹窗AI 对话 editPreference 工具触发 -->
<JobGoalDialog v-model="showJobGoalDialog" />
</div>
</template>
@@ -177,6 +180,7 @@ import type { JobListItem } from '@/api/jobs'
import { fetchResumeList } from '@/api/resume'
import { getIntentionCategoryNames, getIntentionRegionNames, getIntentionIndustryNames } from '@/utils/intention'
import AiThinkingIndicator from '@/components/tools/AiThinkingIndicator.vue'
import JobGoalDialog from '@/components/JobGoalDialog.vue'
/** 页面初始加载状态 */
const pageLoading = ref(true)
@@ -228,6 +232,9 @@ const isSending = ref(false)
/** 是否正在投递流程中(防止重复点击开始按钮) */
const isApplying = ref(false)
/** 是否显示求职目标设置弹窗(由 AI 对话 editPreference 工具触发) */
const showJobGoalDialog = ref(false)
/** 是否暂停投递 */
const isPaused = ref(false)
@@ -1170,6 +1177,25 @@ async function handleSendMessage() {
} catch {
console.error('[Agent] 推荐岗位请求失败')
}
} else if (tool === 'editPreference') {
/* AI 要求打开偏好设置弹窗 — 先插入 AI 回复消息,再弹出求职目标设置弹窗 */
const aiNow = Math.floor(Date.now() / 1000)
chatMessages.value.push({
id: Date.now() + 1,
type: 'assistant',
content: aiContent,
extra: '',
createTime: { seconds: aiNow, nanos: 0 },
})
try {
await addAgentChatMessage({ type: 'assistant', content: aiContent })
} catch { /* 静默 */ }
await nextTick()
scrollChatToBottom()
/* 打开求职目标设置弹窗 */
showJobGoalDialog.value = true
} else {
/* 普通 AI 回复 — 直接插入 assistant 消息 */
const aiNow = Math.floor(Date.now() / 1000)