From c5fe5bf3cb9bd1bf3383a1a431ac37f640485783 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 31 八月 2023 11:47:54 +0800 Subject: [PATCH] 修改未登录访问需要登录的资源,在登录后重定向丢失请求参数问题 --- src/components/HeaderSearch/index.vue | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue index 317df49..7451037 100644 --- a/src/components/HeaderSearch/index.vue +++ b/src/components/HeaderSearch/index.vue @@ -21,6 +21,7 @@ import Fuse from 'fuse.js' import { getNormalPath } from '@/utils/ruoyi' import { isHttp } from '@/utils/validate' +import usePermissionStore from '@/store/modules/permission' const search = ref(''); const options = ref([]); @@ -28,9 +29,8 @@ const show = ref(false); const fuse = ref(undefined); const headerSearchSelectRef = ref(null); -const store = useStore(); const router = useRouter(); -const routes = computed(() => store.getters.permission_routes); +const routes = computed(() => usePermissionStore().routes); function click() { show.value = !show.value @@ -65,7 +65,6 @@ threshold: 0.4, location: 0, distance: 100, - maxPatternLength: 32, minMatchCharLength: 1, keys: [{ name: 'title', -- Gitblit v1.9.3