From 5718c78811c6d2893614c8af99fa7741f7e0c0cc Mon Sep 17 00:00:00 2001
From: bimei <18812666091@163.com>
Date: Fri, 17 Feb 2023 17:25:15 +0800
Subject: [PATCH] =?UTF-8?q?1.tagsView.ts=E5=88=A0=E9=99=A4=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E7=BC=93=E5=AD=98=E4=BC=98=E5=8C=96=202.=E6=96=B0?=
=?UTF-8?q?=E5=A2=9ESearch=E7=BB=84=E4=BB=B6=E6=8F=92=E6=A7=BD=E4=BC=A0?=
=?UTF-8?q?=E9=80=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Search/src/Search.vue | 3 +++
src/store/modules/tagsView.ts | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/Search/src/Search.vue b/src/components/Search/src/Search.vue
index ffff5681..a8ae601b 100644
--- a/src/components/Search/src/Search.vue
+++ b/src/components/Search/src/Search.vue
@@ -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 = () => {
+
diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts
index e9fbf371..a60d0e45 100644
--- a/src/store/modules/tagsView.ts
+++ b/src/store/modules/tagsView.ts
@@ -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() {