Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
copy: (contents: string, options: any = {}) => {
const ret = copy(contents, options);
ret && (!options || options.shutup !== true) && toast.info('内容已拷贝到剪切板');
return ret;
}
});
navigations.forEach(root => {
root.children && mapTree(root.children, (item:any) => {
if (item.path && item.component) {
routes.push(
)
} else if (item.path && item.getComponent) {
routes.push(