faet: 新增保存快捷键

This commit is contained in:
奔跑的面条
2022-05-24 18:16:33 +08:00
parent e36210aa27
commit fa3a3dfcb0
4 changed files with 32 additions and 12 deletions
+13
View File
@@ -163,6 +163,19 @@ export const fetchRouteParams = () => {
}
}
/**
* * 通过硬解析获取当前路由下的参数
* @returns object
*/
export const fetchRouteParamsByhistory = () => {
try {
return document.location.hash.split('/').pop() || ''
} catch (error) {
window['$message'].warning('查询路由信息失败,请联系管理员!')
return ''
}
}
/**
* * 回到主页面
* @param confirm