Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-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
李苏
lxyl-vue
Commits
5b6b09c0
Commit
5b6b09c0
authored
Jun 05, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
14f27e25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
AppMain.vue
src/layout/components/AppMain.vue
+0
-3
No files found.
src/layout/components/AppMain.vue
View file @
5b6b09c0
<
template
>
<
template
>
<section
class=
"app-main"
>
<section
class=
"app-main"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<keep-alive
v-if=
"cachedViews.includes(key)"
>
<keep-alive
v-if=
"cachedViews.includes(key)"
>
<router-view
:key=
"key"
/>
<router-view
:key=
"key"
/>
</keep-alive>
</keep-alive>
<router-view
v-else
:key=
"key"
/>
<router-view
v-else
:key=
"key"
/>
</transition>
</section>
</section>
</
template
>
</
template
>
...
@@ -17,7 +15,6 @@ export default {
...
@@ -17,7 +15,6 @@ export default {
return
this
.
$store
.
state
.
tagsView
.
cachedViews
return
this
.
$store
.
state
.
tagsView
.
cachedViews
},
},
key
()
{
key
()
{
console
.
log
(
this
.
$route
.
name
)
return
this
.
$route
.
name
return
this
.
$route
.
name
}
}
}
}
...
...
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