二期:打包IM

This commit is contained in:
朱浩 2024-08-23 12:01:43 +08:00
parent d4982d47c7
commit 0ea628d174
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ async function createLinkWin(data) {
.then(() => {}) .then(() => {})
.catch((error) => {}) .catch((error) => {})
data.fullPath = data.fullPath.replaceAll('//', '/') data.fullPath = data.fullPath.replaceAll('//', '/')
if (data.fullPath.indexOf('?') !== -1) {
data.fullPath += '&urlSource=smarttalk'
}else {
data.fullPath += '?urlSource=smarttalk'
}
linkWin[data.key].loadURL(data.fullPath) linkWin[data.key].loadURL(data.fullPath)
linkWin[data.key].once('ready-to-show', () => { linkWin[data.key].once('ready-to-show', () => {