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