Merge pull request #8548 from dataease/pr@dev-v2_pathname

Pr@dev v2 pathname
This commit is contained in:
dataeaseShu 2024-03-15 17:30:31 +08:00 committed by GitHub
commit c9d753e613
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,6 @@ export default {
}
}
},
sourcemap: true
sourcemap: false
}
}

View File

@ -36,7 +36,8 @@ const getPrefix = (): string => {
url = ele.src
}
if (url.includes(suffix)) {
prefix = new URL(url).origin
const { origin, pathname } = new URL(url)
prefix = `${origin}${pathname.slice(0, pathname.length - 1)}`
return true
}
}