提交 90644c18 编写于 作者: Cano1997's avatar Cano1997

update: 重定向错误提示调整

上级 73db45a1
import { Environment } from '@/environments/environment'; import { Environment } from '@/environments/environment';
import { Message } from 'element-ui';
/** /**
* @description 计算跳转路径是否在白名单中 * @description 计算跳转路径是否在白名单中
...@@ -45,9 +46,9 @@ export function safeRedirect( ...@@ -45,9 +46,9 @@ export function safeRedirect(
return window.open(url, type); return window.open(url, type);
} }
} else { } else {
console.error(`重定向路径${url}不在白名单中,请确认是否正确!`); Message.error(`重定向路径${url}不在白名单中,请确认是否正确!`);
} }
} catch { } catch {
console.error(`重定向路径${url}不在白名单中,请确认是否正确!`); Message.error(`重定向路径${url}不在白名单中,请确认是否正确!`);
} }
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册