mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
Merge pull request #8551 from dataease/pr@dev-v2_pathname
fix(嵌入式): 嵌入式二级路径问题
This commit is contained in:
commit
2220632f31
@ -37,7 +37,9 @@ const getPrefix = (): string => {
|
||||
}
|
||||
if (url.includes(suffix)) {
|
||||
const { origin, pathname } = new URL(url)
|
||||
prefix = `${origin}${pathname.slice(0, pathname.length - 1)}`
|
||||
const splitArr = pathname.split('/')
|
||||
splitArr.pop()
|
||||
prefix = `${origin}${splitArr.join('/')}`
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user