Commit d4212bab authored by dragondean@qq.com's avatar dragondean@qq.com

修复本地路由在关闭标签的时候可能报错

parent b44d419f
......@@ -6,6 +6,9 @@ const state = {
}
// 获取页面的缓存名称
const getViewName = (view) => {
if(!view.meta?.componentPath){
return view.fullPath
}
return view.meta.componentPath.split('/').map(item => item.substring(0, 1).toUpperCase() + item.substring(1).toLowerCase()).join('')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment