Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
930383f9
提交
930383f9
authored
12月 23, 2020
作者:
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: add mainout page demo
上级
2ee01fa6
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
45 行增加
和
5 行删除
+45
-5
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
UploadModal.vue
src/components/Upload/src/UploadModal.vue
+1
-1
menuHelper.ts
src/router/helper/menuHelper.ts
+1
-1
dashboard.ts
src/router/menus/modules/dashboard.ts
+2
-2
feat.ts
src/router/menus/modules/demo/feat.ts
+1
-0
index.ts
src/router/routes/index.ts
+2
-1
mainOut.ts
src/router/routes/mainOut.ts
+17
-0
index.vue
src/views/demo/main-out/index.vue
+20
-0
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
930383f9
...
...
@@ -5,6 +5,7 @@
-
新增
`v-ripple`
水波纹指令
-
新增左侧菜单混合模式
-
新增 markdown 嵌入表单内示例
-
新增主框架外页面示例
### 🐛 Bug Fixes
...
...
src/components/Upload/src/UploadModal.vue
浏览文件 @
930383f9
...
...
@@ -125,7 +125,7 @@
// 设置类型,则判断
if
(
accept
.
length
>
0
&&
!
checkFileType
(
file
,
accept
))
{
createMessage
.
error
!
(
t
(
'
acomponent.upload.
cceptUpload'
,
[
accept
.
join
(
','
)]));
createMessage
.
error
!
(
t
(
'
component.upload.a
cceptUpload'
,
[
accept
.
join
(
','
)]));
return
false
;
}
const
commonItem
=
{
...
...
src/router/helper/menuHelper.ts
浏览文件 @
930383f9
...
...
@@ -23,7 +23,7 @@ function joinParentPath(list: any, node: any) {
parentPath
+=
/^
\/
/
.
test
(
p
)
?
p
:
`/
${
p
}
`
;
});
}
node
.
path
=
`
${
parentPath
}${
/^
\
//.test(node.path) ? node.path : `
/${node.path}`}`.replace(
node
.
path
=
`
${
/^
\
//.test(node.path) ? node.path : `${parentPath}
/${node.path}`}`.replace(
/
\
/
\
//g,
'/'
);
...
...
src/router/menus/modules/dashboard.ts
浏览文件 @
930383f9
...
...
@@ -8,11 +8,11 @@ const menu: MenuModule = {
path
:
'/dashboard'
,
children
:
[
{
path
:
'
/
workbench'
,
path
:
'workbench'
,
name
:
t
(
'routes.dashboard.workbench'
),
},
{
path
:
'
/
analysis'
,
path
:
'analysis'
,
name
:
t
(
'routes.dashboard.analysis'
),
},
],
...
...
src/router/menus/modules/demo/feat.ts
浏览文件 @
930383f9
...
...
@@ -62,6 +62,7 @@ const menu: MenuModule = {
path
:
'error-log'
,
name
:
t
(
'routes.demo.feat.errorLog'
),
},
{
name
:
t
(
'routes.demo.excel.excel'
),
path
:
'excel'
,
...
...
src/router/routes/index.ts
浏览文件 @
930383f9
...
...
@@ -3,6 +3,7 @@ import type { AppRouteRecordRaw, AppRouteModule } from '/@/router/types';
import
{
PAGE_NOT_FOUND_ROUTE
,
REDIRECT_ROUTE
}
from
'../constant'
;
import
modules
from
'globby!/@/router/routes/modules/**/*.@(ts)'
;
import
{
mainOutRoutes
}
from
'./mainOut'
;
import
{
PageEnum
}
from
'/@/enums/pageEnum'
;
import
{
t
}
from
'/@/hooks/web/useI18n'
;
...
...
@@ -35,4 +36,4 @@ export const LoginRoute: AppRouteRecordRaw = {
};
// 基础路由 不用权限
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
REDIRECT_ROUTE
];
export
const
basicRoutes
=
[
LoginRoute
,
RootRoute
,
...
mainOutRoutes
,
REDIRECT_ROUTE
];
src/router/routes/mainOut.ts
0 → 100644
浏览文件 @
930383f9
import
type
{
AppRouteModule
}
from
'/@/router/types'
;
// test
// http:ip:port/main-out
export
const
mainOutRoutes
:
AppRouteModule
[]
=
[
{
path
:
'/main-out'
,
name
:
'MainOut'
,
component
:
()
=>
import
(
'/@/views/demo/main-out/index.vue'
),
meta
:
{
title
:
'MainOut'
,
ignoreAuth
:
true
,
},
},
];
export
const
mainOutRouteNames
=
mainOutRoutes
.
map
((
item
)
=>
item
.
name
);
src/views/demo/main-out/index.vue
0 → 100644
浏览文件 @
930383f9
<
template
>
<div
class=
"test"
>
位于主框架外的页面
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'vue'
;
export
default
defineComponent
({});
</
script
>
<
style
scoped
>
.test
{
position
:
fixed
;
display
:
flex
;
width
:
100%
;
height
:
100%
;
justify-content
:
center
;
align-items
:
center
;
font-size
:
50px
;
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论