Fix opening last active tab

This commit is contained in:
Natsumi
2026-01-22 16:18:07 +13:00
parent 98fbadae2f
commit a1f4a22609
8 changed files with 34 additions and 32 deletions
+2 -1
View File
@@ -46,6 +46,7 @@ export const useGroupStore = defineStore('Group', () => {
const groupDialog = ref({
visible: false,
loading: false,
lastActiveTab: 'Info',
isGetGroupDialogGroupLoading: false,
treeData: {},
id: '',
@@ -178,7 +179,6 @@ export const useGroupStore = defineStore('Group', () => {
})
.then((args) => {
if (groupId === args.ref.id) {
D.loading = false;
D.ref = args.ref;
uiStore.setDialogCrumbLabel(
'group',
@@ -447,6 +447,7 @@ export const useGroupStore = defineStore('Group', () => {
.then((args) => {
const ref = applyGroup(args.json);
if (D.id === ref.id) {
D.loading = false;
D.ref = ref;
D.inGroup = ref.membershipStatus === 'member';
for (const role of ref.roles) {