chore: 转移master-fetch分支获取id函数到dev分支

This commit is contained in:
奔跑的面条
2022-11-12 16:10:14 +08:00
parent 30a9deaee7
commit fce514c490
+13
View File
@@ -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