Commit 987c3f1b by qlintonger xeno

删除ts错误+5

parent 813a7e34
...@@ -123,15 +123,6 @@ const uploadMuFile = (option: any, type: string) => { ...@@ -123,15 +123,6 @@ const uploadMuFile = (option: any, type: string) => {
}) as any }) as any
} }
function replaceDomainAndPort(url: string, newDomainAndPort: string) {
if (!url) return ''
const urlObject = new URL(url);
urlObject.hostname = newDomainAndPort.split(':')[0];
urlObject.port = newDomainAndPort.split(':')[1];
return urlObject.toString();
}
const mapChatMessageQueue = computed(function () { const mapChatMessageQueue = computed(function () {
return chatChannelState.value.messageQueue.map(function (a: any) { return chatChannelState.value.messageQueue.map(function (a: any) {
return { return {
...@@ -142,7 +133,7 @@ const mapChatMessageQueue = computed(function () { ...@@ -142,7 +133,7 @@ const mapChatMessageQueue = computed(function () {
fromName: a.fromName, fromName: a.fromName,
sendTime: a.happened_time, sendTime: a.happened_time,
message: a.title, message: a.title,
src: replaceDomainAndPort(a.title?.fileUrl, 'ifar.test.com:440'), src: a.title?.fileUrl,
fileName: a.title?.fileName fileName: a.title?.fileName
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment