优化tenant模式

This commit is contained in:
2026-03-09 18:27:12 +08:00
parent b8761ad3e4
commit 108ec50978
8 changed files with 239 additions and 58 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ export const useMenuStore = defineStore('menu', () => {
try {
const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}');
const loginType = userInfo.type || 'user';
const roleId = userInfo.role || 0;
const roleId = userInfo.group_id || 0;
return `menu_cache_${loginType}_${roleId}`;
} catch (e) {
return 'menu_cache_default';
@@ -113,7 +113,7 @@ export const useMenuStore = defineStore('menu', () => {
try {
const userInfo = getUserInfo();
const loginType = userInfo.type || 'user';
const roleId = userInfo.role || 0;
const roleId = userInfo.group_id || 0;
let res;