parent
85ab87fae1
commit
16a21e084e
@ -121,7 +121,7 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
|
||||
// 外链: http开头 & 组件为Layout || ParentView
|
||||
// 正则判断是否为http://或者https://开头
|
||||
if (
|
||||
/^http(s)?:\/\//.test(menu.path) &&
|
||||
/^https?:\/\//.test(menu.path) &&
|
||||
(menu.component === 'Layout' || menu.component === 'ParentView')
|
||||
) {
|
||||
menu.component = 'Link';
|
||||
|
@ -58,7 +58,6 @@ const customConfig: Linter.Config[] = [
|
||||
},
|
||||
],
|
||||
'perfectionist/sort-interfaces': 'off',
|
||||
'regexp/no-unused-capturing-group': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -99,13 +98,6 @@ const customConfig: Linter.Config[] = [
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['packages/effects/access/**/**'],
|
||||
ignores: restrictedImportIgnores,
|
||||
rules: {
|
||||
'regexp/no-unused-capturing-group': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
// 不能引入@vben/*里面的包
|
||||
files: [
|
||||
|
@ -27,7 +27,7 @@ async function generateAccessible(
|
||||
/**
|
||||
* 外链不应该被添加到路由 由menu处理
|
||||
*/
|
||||
if (/^http(s)?:\/\//.test(route.path)) {
|
||||
if (/^https?:\/\//.test(route.path)) {
|
||||
return;
|
||||
}
|
||||
router.addRoute(route);
|
||||
|
Loading…
Reference in New Issue
Block a user