mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 08:12:49 +08:00
chore: 转移master-fetch分支获取id函数到dev分支
This commit is contained in:
parent
29384a3744
commit
1bd67a6ea7
@ -153,6 +153,19 @@ export const fetchRouteParams = () => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* * 通过硬解析获取当前路由下的参数
|
||||
* @returns object
|
||||
*/
|
||||
export const fetchRouteParamsLocation = () => {
|
||||
try {
|
||||
return document.location.hash.split('/').pop() || ''
|
||||
} catch (error) {
|
||||
window['$message'].warning('查询路由信息失败,请联系管理员!')
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* * 回到主页面
|
||||
* @param confirm
|
||||
|
Loading…
Reference in New Issue
Block a user