From 3922c16601266e78ee3b90936ba49305c6c8b09a Mon Sep 17 00:00:00 2001 From: ahao <liuhaoai545@gmail.com> Date: 星期三, 27 十二月 2023 12:12:51 +0800 Subject: [PATCH] fix 修复 vue 类型识别问题 --- src/views/system/user/authRole.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/system/user/authRole.vue b/src/views/system/user/authRole.vue index b661811..656ffc2 100644 --- a/src/views/system/user/authRole.vue +++ b/src/views/system/user/authRole.vue @@ -58,6 +58,7 @@ import { RoleVO } from '@/api/system/role/types'; import { getAuthRole, updateAuthRole } from '@/api/system/user'; import { UserForm } from '@/api/system/user/types'; +import { RouteLocationNormalized } from 'vue-router'; const route = useRoute(); const { proxy } = getCurrentInstance() as ComponentInternalInstance; @@ -91,7 +92,17 @@ }; /** 鍏抽棴鎸夐挳 */ const close = () => { - const obj = { path: '/system/user' }; + const obj: RouteLocationNormalized = { + fullPath: '', + hash: '', + matched: [], + meta: undefined, + name: undefined, + params: undefined, + query: undefined, + redirectedFrom: undefined, + path: '/system/user' + }; proxy?.$tab.closeOpenPage(obj); }; /** 鎻愪氦鎸夐挳 */ -- Gitblit v1.9.3