Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5718c788
authored
Feb 17, 2023
by
bimei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.tagsView.ts删除页面缓存优化 2.新增Search组件插槽传递
parent
401794f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/components/Search/src/Search.vue
+3
-0
src/store/modules/tagsView.ts
+2
-2
No files found.
src/components/Search/src/Search.vue
View file @
5718c788
...
@@ -9,6 +9,8 @@ import { FormSchema } from '@/types/form'
...
@@ -9,6 +9,8 @@ import { FormSchema } from '@/types/form'
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
slots
=
useSlots
()
const
props
=
defineProps
({
const
props
=
defineProps
({
// 生成Form的布局结构数组
// 生成Form的布局结构数组
schema
:
{
schema
:
{
...
@@ -123,6 +125,7 @@ const setVisible = () => {
...
@@ -123,6 +125,7 @@ const setVisible = () => {
</ElButton>
</ElButton>
</div>
</div>
</
template
>
</
template
>
<
template
v-for=
"(slot, name) in slots"
#[
name
]
><slot
:name=
"name"
></slot></
template
>
</Form>
</Form>
<
template
v-if=
"layout === 'bottom'"
>
<
template
v-if=
"layout === 'bottom'"
>
...
...
src/store/modules/tagsView.ts
View file @
5718c788
...
@@ -58,7 +58,7 @@ export const useTagsViewStore = defineStore('tagsView', {
...
@@ -58,7 +58,7 @@ export const useTagsViewStore = defineStore('tagsView', {
// 删除某个
// 删除某个
delView
(
view
:
RouteLocationNormalizedLoaded
)
{
delView
(
view
:
RouteLocationNormalizedLoaded
)
{
this
.
delVisitedView
(
view
)
this
.
delVisitedView
(
view
)
this
.
add
CachedView
()
this
.
del
CachedView
()
},
},
// 删除tag
// 删除tag
delVisitedView
(
view
:
RouteLocationNormalizedLoaded
)
{
delVisitedView
(
view
:
RouteLocationNormalizedLoaded
)
{
...
@@ -80,7 +80,7 @@ export const useTagsViewStore = defineStore('tagsView', {
...
@@ -80,7 +80,7 @@ export const useTagsViewStore = defineStore('tagsView', {
// 删除所有缓存和tag
// 删除所有缓存和tag
delAllViews
()
{
delAllViews
()
{
this
.
delAllVisitedViews
()
this
.
delAllVisitedViews
()
this
.
add
CachedView
()
this
.
del
CachedView
()
},
},
// 删除所有tag
// 删除所有tag
delAllVisitedViews
()
{
delAllVisitedViews
()
{
...
...
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