Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JINRUN-PERPOSITION
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
JINRUN-PERPOSITION
Commits
b24183b4
Commit
b24183b4
authored
Nov 21, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:emptyRouter 访问问题处理
parent
3e2b8acf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
61 deletions
+83
-61
EmptyLayout.vue
src/layout/EmptyLayout.vue
+20
-0
index.vue
src/layout/index.vue
+7
-11
index.js
src/router/index.js
+56
-50
No files found.
src/layout/EmptyLayout.vue
0 → 100644
View file @
b24183b4
<
template
>
<router-view
/>
</
template
>
<
script
>
export
default
{
name
:
"
EmptyLayout
"
,
};
</
script
>
<
style
scoped
>
/* 可以添加一些基础样式 */
html
,
body
{
margin
:
0
;
padding
:
0
;
height
:
100%
;
overflow
:
hidden
;
}
</
style
>
\ No newline at end of file
src/layout/index.vue
View file @
b24183b4
...
@@ -4,24 +4,24 @@
...
@@ -4,24 +4,24 @@
class=
"app-wrapper"
class=
"app-wrapper"
:style=
"
{ '--current-color': theme }"
:style=
"
{ '--current-color': theme }"
>
>
<
!--
<
div
<div
v-if=
"device === 'mobile' && sidebar.opened"
v-if=
"device === 'mobile' && sidebar.opened"
class=
"drawer-bg"
class=
"drawer-bg"
@
click=
"handleClickOutside"
@
click=
"handleClickOutside"
/>
/>
<sidebar
v-if=
"!sidebar.hide"
class=
"sidebar-container"
/>
-->
<sidebar
v-if=
"!sidebar.hide"
class=
"sidebar-container"
/>
<div
<div
:class=
"
{ hasTagsView: needTagsView, sidebarHide: sidebar.hide }"
:class=
"
{ hasTagsView: needTagsView, sidebarHide: sidebar.hide }"
class="main-container"
class="main-container"
>
>
<
!--
<
div
:class=
"
{ 'fixed-header': fixedHeader }">
<div
:class=
"
{ 'fixed-header': fixedHeader }">
<navbar
/>
<navbar
/>
<tags-view
v-if=
"needTagsView"
/>
<tags-view
v-if=
"needTagsView"
/>
</div>
-->
</div>
<app-main
/>
<app-main
/>
<
!--
<
right-panel>
<right-panel>
<settings/>
<settings
/>
</right-panel>
-->
</right-panel>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -119,8 +119,4 @@ export default {
...
@@ -119,8 +119,4 @@ export default {
.mobile
.fixed-header
{
.mobile
.fixed-header
{
width
:
100%
;
width
:
100%
;
}
}
.main-container
{
margin-left
:
0px
!
important
;
}
</
style
>
</
style
>
src/router/index.js
View file @
b24183b4
...
@@ -6,6 +6,7 @@ Vue.use(Router)
...
@@ -6,6 +6,7 @@ Vue.use(Router)
/* Layout */
/* Layout */
import
Layout
from
'
@/layout
'
import
Layout
from
'
@/layout
'
import
EmptyLayout
from
'
@/layout/EmptyLayout
'
/**
/**
* Note: 路由配置项
* Note: 路由配置项
...
@@ -62,71 +63,76 @@ export const constantRoutes = [
...
@@ -62,71 +63,76 @@ export const constantRoutes = [
component
:
()
=>
import
(
'
@/views/error/401
'
),
component
:
()
=>
import
(
'
@/views/error/401
'
),
hidden
:
true
hidden
:
true
},
},
// {
// path: '',
// component: Layout,
// redirect: 'index',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index'),
// name: 'Index',
// meta: { title: '首页', icon: 'dashboard', affix: true }
// }
// ]
// },
{
{
path
:
''
,
path
:
'
/dw
'
,
component
:
Layout
,
// component: Layout,
redirect
:
'
index
'
,
component
:
EmptyLayout
,
redirect
:
'
noredirect
'
,
children
:
[
children
:
[
{
{
path
:
'
index
'
,
path
:
'
index
'
,
component
:
()
=>
import
(
'
@/views/index
'
),
component
:
()
=>
import
(
'
@/views/index
-dw
'
),
name
:
'
Index
'
,
name
:
'
Index
'
,
meta
:
{
title
:
'
首页
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
meta
:
{
title
:
'
首页
2-dw
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
}
}
]
]
},
},
{
{
path
:
'
/dw
'
,
path
:
'
/zz
'
,
component
:
Layout
,
component
:
EmptyLayout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
redirect
:
'
noredirect
'
,
children
:
[
children
:
[
{
{
path
:
'
index
'
,
path
:
'
index
'
,
component
:
()
=>
import
(
'
@/views/index-
dw
'
),
component
:
()
=>
import
(
'
@/views/index-
zz
'
),
name
:
'
Index
'
,
name
:
'
Index
'
,
meta
:
{
title
:
'
首页2-dw
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
meta
:
{
title
:
'
首页2-zz
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
}
]
},
{
path
:
'
/guiji
'
,
component
:
EmptyLayout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
children
:
[
{
path
:
'
index
'
,
component
:
()
=>
import
(
'
@/views/index-guiji
'
),
name
:
'
Index
'
,
meta
:
{
title
:
'
首页2-gj
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
}
]
},
{
path
:
'
/wl
'
,
component
:
EmptyLayout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
children
:
[
{
path
:
'
index
'
,
component
:
()
=>
import
(
'
@/views/index-wl
'
),
name
:
'
Screen
'
,
meta
:
{
title
:
'
首页-WL
'
,
icon
:
'
dashboard
'
,
affix
:
true
}
}
}
]
]
},
},
// {
// path: '/zz',
// component: Layout,
// redirect: 'noredirect',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index-zz'),
// name: 'Index',
// meta: { title: '首页2-zz', icon: 'dashboard', affix: true }
// }
// ]
// },
// {
// path: '/guiji',
// component: Layout,
// redirect: 'noredirect',
// children: [
// {
// path: 'index',
// component: () => import('@/views/index-guiji'),
// name: 'Index',
// meta: { title: '首页2-gj', icon: 'dashboard', affix: true }
// }
// ]
// },
// {
// path: '/wl',
// component: Layout,
// redirect: 'noredirect',
// children: [
// {
// path: 'screen',
// component: () => import('@/views/index-wl'),
// name: 'Screen',
// meta: { title: '首页-WL', icon: 'dashboard', affix: true }
// }
// ]
// },
{
{
path
:
'
/user
'
,
path
:
'
/user
'
,
component
:
Layout
,
component
:
Layout
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment