mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-15 15:02:10 +08:00
fix: 修复location.search带来的异常
This commit is contained in:
parent
fe7af94343
commit
4704254736
@ -169,7 +169,7 @@ export const fetchRouteParams = () => {
|
||||
*/
|
||||
export const fetchRouteParamsLocation = () => {
|
||||
try {
|
||||
return document.location.hash.split('/').pop() || ''
|
||||
return (document.location.hash.split('/').pop() || '').split('?').shift()
|
||||
} catch (error) {
|
||||
window['$message'].warning('查询路由信息失败,请联系管理员!')
|
||||
return ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user