8c93cc9c9d
跑 npm run build 验收时发现 2 个前端项目编译失败(vue-tsc 报错),修复 4 处:
frontend-h5:
- src/components/chat/InputBox.vue:185 多余右括号
computed(() => inputText.value.length)) -> computed(() => inputText.value.length)
- src/components/chat/MessageList.vue:134 pollMessages 调用签名错
pollMessages(convId, afterMessageId) -> pollMessages(afterMessageId)
(api/message.ts:71 签名只接 1 个 afterMessageId 参数,endpoint 走 current 不需要 convId)
frontend-agent:
- src/components/chat/InputBox.vue 4 处错
L91/234/292 conversationStore.loading 不存在(store 暴露的是 loadingMessages)
-> conversationStore.loadingMessages
L136 import onUnmounted 死引用,移除
components.d.ts: 触发 unplugin-vue-components 重新生成 6 行(新组件类型)
验证:
- frontend-h5: vue-tsc 0 错,417 modules transformed, dist/ 生成
- frontend-agent: vue-tsc 0 错,1750 modules transformed, dist/ 生成
不影响业务逻辑,纯 build fix。
38 lines
2.2 KiB
TypeScript
38 lines
2.2 KiB
TypeScript
/* eslint-disable */
|
|
// @ts-nocheck
|
|
// Generated by unplugin-vue-components
|
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
export {}
|
|
|
|
/* prettier-ignore */
|
|
declare module 'vue' {
|
|
export interface GlobalComponents {
|
|
AiHelperPanel: typeof import('./src/components/assistant/AiHelperPanel.vue')['default']
|
|
ApprovalCardModal: typeof import('./src/components/chat/ApprovalCardModal.vue')['default']
|
|
ApprovalLinks: typeof import('./src/components/assistant/ApprovalLinks.vue')['default']
|
|
CallAgentModal: typeof import('./src/components/chat/CallAgentModal.vue')['default']
|
|
ChatPanel: typeof import('./src/components/chat/ChatPanel.vue')['default']
|
|
ComingSoon: typeof import('./src/components/assistant/ComingSoon.vue')['default']
|
|
InputBar: typeof import('./src/components/chat/InputBar.vue')['default']
|
|
InputBox: typeof import('./src/components/chat/InputBox.vue')['default']
|
|
MessageBubble: typeof import('./src/components/chat/MessageBubble.vue')['default']
|
|
MessageItem: typeof import('./src/components/chat/MessageItem.vue')['default']
|
|
MessageList: typeof import('./src/components/chat/MessageList.vue')['default']
|
|
ParticipantList: typeof import('./src/components/chat/ParticipantList.vue')['default']
|
|
RightPanel: typeof import('./src/components/assistant/RightPanel.vue')['default']
|
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
RouterView: typeof import('vue-router')['RouterView']
|
|
ScreenshotEditor: typeof import('./src/components/chat/ScreenshotEditor.vue')['default']
|
|
ShakeButton: typeof import('./src/components/chat/ShakeButton.vue')['default']
|
|
SoftwareDownloads: typeof import('./src/components/assistant/SoftwareDownloads.vue')['default']
|
|
TroubleshootFlow: typeof import('./src/components/chat/TroubleshootFlow.vue')['default']
|
|
TroubleshootProgress: typeof import('./src/components/chat/TroubleshootProgress.vue')['default']
|
|
VanButton: typeof import('vant/es')['Button']
|
|
VanConfigProvider: typeof import('vant/es')['ConfigProvider']
|
|
VanEmpty: typeof import('vant/es')['Empty']
|
|
VanField: typeof import('vant/es')['Field']
|
|
VanIcon: typeof import('vant/es')['Icon']
|
|
VanPopup: typeof import('vant/es')['Popup']
|
|
}
|
|
}
|