Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
fc4666ef
提交
fc4666ef
authored
11月 12, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: route structure adjustment
上级
cb1ae34f
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
54 行增加
和
25 行删除
+54
-25
index.tsx
src/layouts/default/multitabs/index.tsx
+0
-1
dashboard.ts
src/router/routes/modules/dashboard.ts
+4
-2
charts.ts
src/router/routes/modules/demo/charts.ts
+4
-2
comp.ts
src/router/routes/modules/demo/comp.ts
+4
-2
editor.ts
src/router/routes/modules/demo/editor.ts
+4
-2
excel.ts
src/router/routes/modules/demo/excel.ts
+4
-2
feat.ts
src/router/routes/modules/demo/feat.ts
+4
-2
form.ts
src/router/routes/modules/demo/form.ts
+3
-2
iframe.ts
src/router/routes/modules/demo/iframe.ts
+4
-2
page.ts
src/router/routes/modules/demo/page.ts
+4
-2
permission.ts
src/router/routes/modules/demo/permission.ts
+10
-2
table.ts
src/router/routes/modules/demo/table.ts
+4
-2
tree.ts
src/router/routes/modules/demo/tree.ts
+4
-2
types.d.ts
src/router/types.d.ts
+1
-0
没有找到文件。
src/layouts/default/multitabs/index.tsx
浏览文件 @
fc4666ef
...
@@ -43,7 +43,6 @@ export default defineComponent({
...
@@ -43,7 +43,6 @@ export default defineComponent({
}
}
const
lastChangeRoute
=
unref
(
tabStore
.
getLastChangeRouteState
);
const
lastChangeRoute
=
unref
(
tabStore
.
getLastChangeRouteState
);
if
(
!
lastChangeRoute
||
!
userStore
.
getTokenState
)
return
;
if
(
!
lastChangeRoute
||
!
userStore
.
getTokenState
)
return
;
const
{
path
,
fullPath
}
=
lastChangeRoute
;
const
{
path
,
fullPath
}
=
lastChangeRoute
;
...
...
src/router/routes/modules/dashboard.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
dashboard
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/dashboard'
,
path
:
'/dashboard'
,
name
:
'Dashboard'
,
name
:
'Dashboard'
,
...
@@ -41,4 +41,6 @@ export default {
...
@@ -41,4 +41,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
dashboard
;
src/router/routes/modules/demo/charts.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
charts
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/charts'
,
path
:
'/charts'
,
name
:
'Charts'
,
name
:
'Charts'
,
...
@@ -57,4 +57,6 @@ export default {
...
@@ -57,4 +57,6 @@ export default {
component
:
()
=>
import
(
'/@/views/demo/echarts/apex/index.vue'
),
component
:
()
=>
import
(
'/@/views/demo/echarts/apex/index.vue'
),
},
},
],
],
}
as
AppRouteModule
;
};
export
default
charts
;
src/router/routes/modules/demo/comp.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
comp
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/comp'
,
path
:
'/comp'
,
name
:
'Comp'
,
name
:
'Comp'
,
...
@@ -179,4 +179,6 @@ export default {
...
@@ -179,4 +179,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
comp
;
src/router/routes/modules/demo/editor.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
editor
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/editor'
,
path
:
'/editor'
,
name
:
'Editor'
,
name
:
'Editor'
,
...
@@ -51,4 +51,6 @@ export default {
...
@@ -51,4 +51,6 @@ export default {
],
],
},
},
],
],
}
as
AppRouteModule
;
};
export
default
editor
;
src/router/routes/modules/demo/excel.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
excel
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/excel'
,
path
:
'/excel'
,
name
:
'Excel'
,
name
:
'Excel'
,
...
@@ -48,4 +48,6 @@ export default {
...
@@ -48,4 +48,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
excel
;
src/router/routes/modules/demo/feat.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
feat
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/feat'
,
path
:
'/feat'
,
name
:
'FeatDemo'
,
name
:
'FeatDemo'
,
...
@@ -114,4 +114,6 @@ export default {
...
@@ -114,4 +114,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
feat
;
src/router/routes/modules/demo/form.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
form
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/form'
,
path
:
'/form'
,
name
:
'FormDemo'
,
name
:
'FormDemo'
,
...
@@ -72,4 +72,5 @@ export default {
...
@@ -72,4 +72,5 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
form
;
src/router/routes/modules/demo/iframe.ts
浏览文件 @
fc4666ef
...
@@ -3,7 +3,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -3,7 +3,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
const
IFrame
=
()
=>
import
(
'/@/views/sys/iframe/FrameBlank.vue'
);
const
IFrame
=
()
=>
import
(
'/@/views/sys/iframe/FrameBlank.vue'
);
export
default
{
const
iframe
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/frame'
,
path
:
'/frame'
,
name
:
'Frame'
,
name
:
'Frame'
,
...
@@ -46,4 +46,6 @@ export default {
...
@@ -46,4 +46,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
iframe
;
src/router/routes/modules/demo/page.ts
浏览文件 @
fc4666ef
...
@@ -5,7 +5,7 @@ import { ExceptionEnum } from '/@/enums/exceptionEnum';
...
@@ -5,7 +5,7 @@ import { ExceptionEnum } from '/@/enums/exceptionEnum';
const
ExceptionPage
=
()
=>
import
(
'/@/views/sys/exception/Exception'
);
const
ExceptionPage
=
()
=>
import
(
'/@/views/sys/exception/Exception'
);
export
default
{
const
page
:
AppRouteModule
=
{
path
:
'/page-demo'
,
path
:
'/page-demo'
,
name
:
'PageDemo'
,
name
:
'PageDemo'
,
component
:
PAGE_LAYOUT_COMPONENT
,
component
:
PAGE_LAYOUT_COMPONENT
,
...
@@ -117,4 +117,6 @@ export default {
...
@@ -117,4 +117,6 @@ export default {
},
},
// =============================exception end=============================
// =============================exception end=============================
],
],
}
as
AppRouteModule
;
};
export
default
page
;
src/router/routes/modules/demo/permission.ts
浏览文件 @
fc4666ef
...
@@ -3,7 +3,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -3,7 +3,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
RoleEnum
}
from
'/@/enums/roleEnum'
;
import
{
RoleEnum
}
from
'/@/enums/roleEnum'
;
export
default
{
const
permission
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/permission'
,
path
:
'/permission'
,
name
:
'Permission'
,
name
:
'Permission'
,
...
@@ -25,6 +25,7 @@ export default {
...
@@ -25,6 +25,7 @@ export default {
children
:
[
children
:
[
{
{
path
:
'page'
,
path
:
'page'
,
name
:
'FrontPageAuth'
,
component
:
()
=>
import
(
'/@/views/demo/permission/front/index.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/front/index.vue'
),
meta
:
{
meta
:
{
title
:
'页面权限'
,
title
:
'页面权限'
,
...
@@ -32,6 +33,7 @@ export default {
...
@@ -32,6 +33,7 @@ export default {
},
},
{
{
path
:
'btn'
,
path
:
'btn'
,
name
:
'FrontBtnAuth'
,
component
:
()
=>
import
(
'/@/views/demo/permission/front/Btn.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/front/Btn.vue'
),
meta
:
{
meta
:
{
title
:
'按钮权限'
,
title
:
'按钮权限'
,
...
@@ -39,6 +41,7 @@ export default {
...
@@ -39,6 +41,7 @@ export default {
},
},
{
{
path
:
'auth-pageA'
,
path
:
'auth-pageA'
,
name
:
'FrontAuthPageA'
,
component
:
()
=>
import
(
'/@/views/demo/permission/front/AuthPageA.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/front/AuthPageA.vue'
),
meta
:
{
meta
:
{
title
:
'权限测试页A'
,
title
:
'权限测试页A'
,
...
@@ -47,6 +50,7 @@ export default {
...
@@ -47,6 +50,7 @@ export default {
},
},
{
{
path
:
'auth-pageB'
,
path
:
'auth-pageB'
,
name
:
'FrontAuthPageB'
,
component
:
()
=>
import
(
'/@/views/demo/permission/front/AuthPageB.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/front/AuthPageB.vue'
),
meta
:
{
meta
:
{
title
:
'权限测试页B'
,
title
:
'权限测试页B'
,
...
@@ -64,6 +68,7 @@ export default {
...
@@ -64,6 +68,7 @@ export default {
children
:
[
children
:
[
{
{
path
:
'page'
,
path
:
'page'
,
name
:
'BackAuthPage'
,
component
:
()
=>
import
(
'/@/views/demo/permission/back/index.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/back/index.vue'
),
meta
:
{
meta
:
{
title
:
'页面权限'
,
title
:
'页面权限'
,
...
@@ -71,6 +76,7 @@ export default {
...
@@ -71,6 +76,7 @@ export default {
},
},
{
{
path
:
'btn'
,
path
:
'btn'
,
name
:
'BackAuthBtn'
,
component
:
()
=>
import
(
'/@/views/demo/permission/back/Btn.vue'
),
component
:
()
=>
import
(
'/@/views/demo/permission/back/Btn.vue'
),
meta
:
{
meta
:
{
title
:
'按钮权限'
,
title
:
'按钮权限'
,
...
@@ -79,4 +85,6 @@ export default {
...
@@ -79,4 +85,6 @@ export default {
],
],
},
},
],
],
}
as
AppRouteModule
;
};
export
default
permission
;
src/router/routes/modules/demo/table.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
table
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/table'
,
path
:
'/table'
,
name
:
'TableDemo'
,
name
:
'TableDemo'
,
...
@@ -128,4 +128,6 @@ export default {
...
@@ -128,4 +128,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
table
;
src/router/routes/modules/demo/tree.ts
浏览文件 @
fc4666ef
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
...
@@ -2,7 +2,7 @@ import type { AppRouteModule } from '/@/router/types';
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
import
{
PAGE_LAYOUT_COMPONENT
}
from
'/@/router/constant'
;
export
default
{
const
tree
:
AppRouteModule
=
{
layout
:
{
layout
:
{
path
:
'/tree'
,
path
:
'/tree'
,
name
:
'TreeDemo'
,
name
:
'TreeDemo'
,
...
@@ -39,4 +39,6 @@ export default {
...
@@ -39,4 +39,6 @@ export default {
},
},
},
},
],
],
}
as
AppRouteModule
;
};
export
default
tree
;
src/router/types.d.ts
浏览文件 @
fc4666ef
...
@@ -36,6 +36,7 @@ export interface RouteMeta {
...
@@ -36,6 +36,7 @@ export interface RouteMeta {
}
}
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'meta'
>
{
export
interface
AppRouteRecordRaw
extends
Omit
<
RouteRecordRaw
,
'meta'
>
{
name
:
string
;
meta
:
RouteMeta
;
meta
:
RouteMeta
;
component
?:
any
;
component
?:
any
;
components
?:
any
;
components
?:
any
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论