Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
啊嘞嘞EC
vue-vben-admin
提交
930383f9
V
vue-vben-admin
项目概览
啊嘞嘞EC
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
930383f9
编写于
12月 23, 2020
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: add mainout page demo
上级
2ee01fa6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
45 addition
and
5 deletion
+45
-5
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
src/components/Upload/src/UploadModal.vue
src/components/Upload/src/UploadModal.vue
+1
-1
src/router/helper/menuHelper.ts
src/router/helper/menuHelper.ts
+1
-1
src/router/menus/modules/dashboard.ts
src/router/menus/modules/dashboard.ts
+2
-2
src/router/menus/modules/demo/feat.ts
src/router/menus/modules/demo/feat.ts
+1
-0
src/router/routes/index.ts
src/router/routes/index.ts
+2
-1
src/router/routes/mainOut.ts
src/router/routes/mainOut.ts
+17
-0
src/views/demo/main-out/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
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录