// 为了防止出现后端返回结果不规范,处理有可能出现拼接出两个 反斜杠
// 如果为外部跳转,则增加beforEnter处理,target设置为blank
if (!currentRouter.path.startsWith('http')) {
currentRouter.path = currentRouter.path.replace('//', '/')
} else {
currentRouter.meta.target = '_blank'
currentRouter.beforeEnter = () => {
location.href = currentRouter.path
}
}