diff --git a/src/utils/router.ts b/src/utils/router.ts index 5f104f56..c1582951 100644 --- a/src/utils/router.ts +++ b/src/utils/router.ts @@ -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 ''