Commit 66d66bef by pangchong

Merge branch 'master' of 122.112.146.86:qlintonger/standalone-anyremote

parents 7eef01a6 987c3f1b
......@@ -123,15 +123,6 @@ const uploadMuFile = (option: any, type: string) => {
}) 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 () {
return chatChannelState.value.messageQueue.map(function (a: any) {
return {
......@@ -142,7 +133,7 @@ const mapChatMessageQueue = computed(function () {
fromName: a.fromName,
sendTime: a.happened_time,
message: a.title,
src: replaceDomainAndPort(a.title?.fileUrl, 'ifar.test.com:440'),
src: a.title?.fileUrl,
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