@@ -5,7 +5,6 @@ import dayjs from 'dayjs';
55
66import {
77 Button ,
8- Card ,
98 ConfigProvider ,
109 Descriptions ,
1110 Flex ,
@@ -42,7 +41,7 @@ import { getMessageStyleConfig } from '@ecuc/shared/constants/system-message.con
4241import { SystemMessageDisplay } from '@common/components/SystemMessageDisplay' ;
4342import { generateTemporaryUrl } from '@common/utils/uploadUtils' ;
4443import HTMLComponent from './HtmlComponent' ;
45- import { AlertOutlined , ArrowUpOutlined , DeleteOutlined } from '@ant-design/icons' ;
44+ import { ArrowUpOutlined , DeleteOutlined } from '@ant-design/icons' ;
4645import type { TicketDetail } from '@ecuc/shared/types/ticket.types' ;
4746import {
4847 Ticket ,
@@ -52,7 +51,6 @@ import {
5251 TicketPriority ,
5352} from '@ecuc/shared/types/ticket.types' ;
5453import { TICKET_TYPES_OWN_STATUS_FLOW } from '@ecuc/shared/constants/ticket.constants' ;
55- import { Link } from 'react-router-dom' ;
5654import MonthlyLinkVideoModal from '../pages/admin/media/components/MonthlyLinkVideoModal' ;
5755
5856const TicketDetailComponent : React . FC < {
@@ -416,37 +414,6 @@ const TicketDetailComponent: React.FC<{
416414 ) ;
417415 }
418416
419- const urlPattern = / h t t p s : \/ \/ n i n g b o e s h \. f e i s h u \. c n \/ r e c o r d \/ \w + / g;
420- if ( urlPattern . test ( processed ) ) {
421- const urls = processed . match ( urlPattern ) ;
422- processed = processed . replace ( urlPattern , '' ) ;
423- return (
424- < >
425- < HTMLComponent content = { processed } />
426- < Space direction = "vertical" size = "small" >
427- { urls ?. map ( url => (
428- < Link key = { `rec_${ url } ` } to = { url } target = "_blank" >
429- < Tooltip title = { gLang ( 'admin.ticketClickHint' ) } >
430- < Card size = "small" hoverable >
431- < Link to = { url } target = "_blank" style = { { padding : '0 4px' } } >
432- < Space >
433- < AlertOutlined />
434- { gLang ( 'ticketDetail.issueTracked' ) }
435- { url . replace (
436- 'https://ningboesh.feishu.cn/record/' ,
437- ''
438- ) }
439- </ Space >
440- </ Link >
441- </ Card >
442- </ Tooltip >
443- </ Link >
444- ) ) }
445- </ Space >
446- </ >
447- ) ;
448- }
449-
450417 // 将 1 开头的六位数字渲染为链接按钮(仅管理员)
451418 if ( isAdmin && / \b 1 \d { 5 } \b / . test ( processed ) ) {
452419 // 拆分并逐段渲染,非 TID 片段使用内联 span 避免强制换行
0 commit comments