1.tagsView.ts删除页面缓存优化 2.新增Search组件插槽传递

This commit is contained in:
bimei 2023-02-17 17:25:15 +08:00
parent 401794f1bf
commit 5718c78811
2 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,8 @@ import { FormSchema } from '@/types/form'
const { t } = useI18n()
const slots = useSlots()
const props = defineProps({
// Form
schema: {
@ -123,6 +125,7 @@ const setVisible = () => {
</ElButton>
</div>
</template>
<template v-for="(slot, name) in slots" #[name]><slot :name="name"></slot></template>
</Form>
<template v-if="layout === 'bottom'">

View File

@ -58,7 +58,7 @@ export const useTagsViewStore = defineStore('tagsView', {
// 删除某个
delView(view: RouteLocationNormalizedLoaded) {
this.delVisitedView(view)
this.addCachedView()
this.delCachedView()
},
// 删除tag
delVisitedView(view: RouteLocationNormalizedLoaded) {
@ -80,7 +80,7 @@ export const useTagsViewStore = defineStore('tagsView', {
// 删除所有缓存和tag
delAllViews() {
this.delAllVisitedViews()
this.addCachedView()
this.delCachedView()
},
// 删除所有tag
delAllVisitedViews() {