修复中文乱码问题
This commit is contained in:
File diff suppressed because one or more lines are too long
2
frontend/dist/index.html
vendored
2
frontend/dist/index.html
vendored
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>AirShare Pro</title>
|
<title>AirShare Pro</title>
|
||||||
<script type="module" crossorigin src="/assets/index-sgHRZUw3.js"></script>
|
<script type="module" crossorigin src="/assets/index-DoCMU-eK.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-qzWUgf-t.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-qzWUgf-t.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2871,13 +2871,13 @@ mapTransferRecord = function mapTransferRecordOverride(record) {
|
|||||||
return {
|
return {
|
||||||
time: formatRelativeTime(record.created_at),
|
time: formatRelativeTime(record.created_at),
|
||||||
peer: `${shortId(record.sender_device_id)} -> ${shortId(record.receiver_device_id)}`,
|
peer: `${shortId(record.sender_device_id)} -> ${shortId(record.receiver_device_id)}`,
|
||||||
type: record.kind === 'text' ? '鏂囨湰娑堟伅' : `鏂囦欢 ${displayName}`,
|
type: record.kind === 'text' ? '文本消息' : `文件 ${displayName}`,
|
||||||
size: formatFileSize(Number(record.size_bytes || 0)),
|
size: formatFileSize(Number(record.size_bytes || 0)),
|
||||||
status: isCompleted
|
status: isCompleted
|
||||||
? `宸插畬鎴?(${record.current_channel || 'p2p'})`
|
? `已完成(${record.current_channel || 'p2p'})`
|
||||||
: isFailed
|
: isFailed
|
||||||
? `宸茬粨鏉?(${record.final_status})`
|
? `已结束(${record.final_status})`
|
||||||
: `杩涜涓?(${record.final_status || 'pending'})`,
|
: `进行中(${record.final_status || 'pending'})`,
|
||||||
tone: isCompleted ? 'success' : isFailed ? 'danger' : 'primary',
|
tone: isCompleted ? 'success' : isFailed ? 'danger' : 'primary',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user