Merge pull request #8548 from dataease/pr@dev-v2_pathname
Pr@dev v2 pathname
This commit is contained in:
commit
c9d753e613
@ -26,6 +26,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
sourcemap: true
|
||||
sourcemap: false
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user