fix vue json pretty collapse issue

This commit is contained in:
pa
2026-01-24 16:06:28 +09:00
parent 0af08e7741
commit 642d222faa
5 changed files with 15 additions and 3 deletions

View File

@@ -811,7 +811,7 @@
.notify-dot {
position: absolute;
top: 6px;
right: 0;
right: 2px;
width: 4px;
height: 4px;
background-color: #ef4444;

View File

@@ -496,7 +496,12 @@
@click="downloadAndSaveJson(avatarDialog.id, avatarDialog.ref)">
<Download />
</Button>
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
<vue-json-pretty
:key="treeData?.id"
:data="treeData"
:deep="2"
:theme="isDarkMode ? 'dark' : 'light'"
show-icon />
<br />
<vue-json-pretty
v-if="Object.keys(avatarDialog.fileAnalysis).length > 0"

View File

@@ -1106,6 +1106,7 @@
<Download />
</Button>
<vue-json-pretty
:key="groupDialog.treeData?.group?.id"
:data="groupDialog.treeData"
:deep="2"
:theme="isDarkMode ? 'dark' : 'light'"

View File

@@ -1191,6 +1191,7 @@
<Download />
</Button>
<vue-json-pretty
:key="userDialog.treeData?.id"
:data="userDialog.treeData"
:deep="2"
:theme="isDarkMode ? 'dark' : 'light'"

View File

@@ -688,7 +688,12 @@
@click="downloadAndSaveJson(worldDialog.id, worldDialog.ref)">
<Download />
</Button>
<vue-json-pretty :data="treeData" :deep="2" :theme="isDarkMode ? 'dark' : 'light'" show-icon />
<vue-json-pretty
:key="treeData?.id"
:data="treeData"
:deep="2"
:theme="isDarkMode ? 'dark' : 'light'"
show-icon />
<br />
<vue-json-pretty
v-if="Object.keys(worldDialog.fileAnalysis).length > 0"