From e41cb44dc302b51534036b3cf114dd2d5bc4f809 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期二, 29 九月 2026 14:32:49 +0800
Subject: [PATCH] 修改了数据采集
---
src/permission.ts | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/permission.ts b/src/permission.ts
index b0f6231..d0bfdfd 100644
--- a/src/permission.ts
+++ b/src/permission.ts
@@ -9,6 +9,7 @@
import { useCheckTypeStoreWithOut } from '@/store/modules/checkType'
import { useUserStoreWithOut } from '@/store/modules/user'
import { usePermissionStoreWithOut } from '@/store/modules/permission'
+import { useRoomStoreWithOut } from "@/store/modules/room";
const { start, done } = useNProgress()
@@ -83,6 +84,7 @@
// 鑾峰彇鎵�鏈夊瓧鍏�
const dictStore = useDictStoreWithOut()
const userStore = useUserStoreWithOut()
+ const roomStore = useRoomStoreWithOut()
const checkTypeStore = useCheckTypeStoreWithOut()
const permissionStore = usePermissionStoreWithOut()
if (!dictStore.getIsSetDict) {
@@ -97,7 +99,7 @@
// <<<銆愯瘖瀹ら�夋嫨銆�<<<
if ( to.path !== '/roomselect' &&
userStore.getRoles.includes("doctor") && !userStore.getRoles.includes("super_admin")
- && !userStore.getIsSetRoom ) {
+ && !roomStore.getIsSetRoom ) {
next({path: `/roomselect?redirect=${to.fullPath}`})
return
}
@@ -119,7 +121,7 @@
// <<<銆愯瘖瀹ら�夋嫨銆�<<<
if ( to.path !== '/roomselect' &&
userStore.getRoles.includes("doctor") && !userStore.getRoles.includes("super_admin")
- && !userStore.getIsSetRoom ) {
+ && !roomStore.getIsSetRoom ) {
next({path: `/roomselect?redirect=${to.fullPath}`})
return
}
--
Gitblit v1.9.3