Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gavel-clouderp-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李苏
gavel-clouderp-vue
Commits
4012b4b3
Commit
4012b4b3
authored
Jun 18, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
28844119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
16 deletions
+19
-16
AppMain.vue
src/layout/components/AppMain.vue
+16
-13
Navbar.vue
src/layout/components/Navbar.vue
+3
-3
No files found.
src/layout/components/AppMain.vue
View file @
4012b4b3
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<section
class=
"app-main"
>
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<keep-alive
:include=
"cachedViews"
>
<keep-alive
:include=
"cachedViews"
>
<router-view
v-if=
"!$route.meta.link"
:key=
"key"
/>
<!--
<router-view
v-if=
"!$route.meta.link"
:key=
"key"
/>
-->
<router-view
/>
</keep-alive>
</keep-alive>
</transition>
</transition>
</section>
</section>
...
@@ -14,18 +15,20 @@
...
@@ -14,18 +15,20 @@
export
default
{
export
default
{
name
:
'AppMain'
,
name
:
'AppMain'
,
computed
:
{
computed
:
{
cachedViews
()
{
cachedViews
()
{
console
.
log
(
this
.
$store
.
state
.
tagsView
,
'this.$store.state.tagsView'
)
const
list
=
this
.
$store
.
state
.
tagsView
.
cachedViews
return
this
.
$store
.
state
.
tagsView
.
cachedViews
list
.
push
(
'AppMain'
)
},
key
()
{
return
list
return
this
.
$route
.
path
},
}
key
()
{
}
return
this
.
$route
.
path
}
}
}
}
</
script
>
</
script
>
...
...
src/layout/components/Navbar.vue
View file @
4012b4b3
...
@@ -41,10 +41,10 @@
...
@@ -41,10 +41,10 @@
<ChangeProject/>
<ChangeProject/>
</div>
</div>
<
template
v-if=
"device!=='mobile'"
>
<
!--
<template
v-if=
"device!=='mobile'"
>
--
>
<
screenfull
id=
"screenfull"
class=
"right-menu-item hover-effect"
/
>
<
!--
<screenfull
id=
"screenfull"
class=
"right-menu-item hover-effect"
/>
--
>
<
/
template
>
<
!--
</
template
>
--
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
...
...
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