weixin_52219567 преди 1 ден
родител
ревизия
b61b0ddecd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/permission.ts

+ 1 - 1
src/permission.ts

@@ -65,7 +65,7 @@ function getDomainHomePath(site: string, station: ReturnType<typeof stationStore
 
   // 新增:当 userSonType 为 '3' 时,优先跳转到 /indexEnterprise(如果允许)
   const userStore = useUserStore();
-  if (userStore.userInfo?.user.userSonType === '3' && allowedPaths.includes('/indexEnterprise')) {
+  if (userStore.userInfo?.user?.userSonType == '3' && allowedPaths.includes('/indexEnterprise')) {
     return '/indexEnterprise';
   }