Fix dialog tab load

This commit is contained in:
Natsumi
2026-01-16 10:14:44 +13:00
parent aef6acefc9
commit 1c1dd2ebc3
4 changed files with 13 additions and 4 deletions

View File

@@ -326,7 +326,7 @@
</div>
</div>
<TabsUnderline
v-model="avatarDialogLastActiveTab"
v-model="avatarDialogActiveTab"
:items="avatarDialogTabs"
:unmount-on-hide="false"
@update:modelValue="avatarDialogTabClick">
@@ -615,6 +615,7 @@
{ value: 'JSON', label: t('dialog.avatar.json.header') }
]);
const avatarDialogActiveTab = ref('Info');
const avatarDialogLastActiveTab = ref('Info');
const changeAvatarImageDialogVisible = ref(false);
const previousImageUrl = ref('');
@@ -686,6 +687,7 @@
);
function handleAvatarDialogTab(tabName) {
avatarDialogLastActiveTab.value = tabName;
if (tabName === 'JSON') {
refreshAvatarDialogTreeData();
}