Merge branch 'dev' into hugo-shipping-notice
This commit is contained in:
commit
bc86720744
49 files changed
+2950
-458
No files matched your search
@@ -28,6 +28,12 @@ function normalizeAssetHistoryErrorMessage(message: string): string {
|
||||
if (lowerCaseMessage.includes('asset history share is not configured')) {
|
||||
return '当前系统暂未配置资产履历文件目录,暂时无法查看履历,请联系管理员处理。';
|
||||
}
|
||||
if (lowerCaseMessage.includes('asset history share is unreachable')) {
|
||||
return '当前环境暂时无法访问资产履历共享盘,请联系管理员检查测试环境共享盘挂载或访问权限。';
|
||||
}
|
||||
if (lowerCaseMessage.includes('asset history share is invalid')) {
|
||||
return '当前环境的资产履历目录配置无效,请联系管理员检查共享盘目录配置。';
|
||||
}
|
||||
return normalizedMessage || '检索资产履历失败';
|
||||
}
|
||||
|
||||
|
||||
@@ -386,26 +386,6 @@ export function createChatPageMarkdownApi(ctx: ChatPageMarkdownContext) {
|
||||
const target = event.target as HTMLElement | null;
|
||||
const anchor = target?.closest?.('a') as HTMLAnchorElement | null;
|
||||
const rawHref = anchor?.getAttribute('href') || '';
|
||||
// #region debug-point A:asset-history-anchor-click
|
||||
if (rawHref.startsWith('#asset-history?')) {
|
||||
fetch('http://127.0.0.1:7777/event', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
sessionId: 'asset-history-click',
|
||||
runId: 'pre-fix',
|
||||
hypothesisId: 'A',
|
||||
location: 'frontend/useChatPageMarkdown.ts',
|
||||
msg: '[DEBUG] asset history anchor clicked',
|
||||
data: {
|
||||
href: rawHref,
|
||||
tagName: target?.tagName || '',
|
||||
anchorText: String(anchor?.textContent || '').trim(),
|
||||
},
|
||||
ts: Date.now(),
|
||||
}),
|
||||
}).catch(() => {});
|
||||
}
|
||||
// #endregion
|
||||
if (rawHref.startsWith('#asset-history?')) {
|
||||
event.preventDefault();
|
||||
const params = new URLSearchParams(rawHref.slice('#asset-history?'.length));
|
||||
|
||||
Reference in new issue
Block a user