fix: add app_name to API response, fix UiSwitch binding in version pages

This commit is contained in:
Trae AI
2026-06-20 06:09:58 +08:00
parent a32d3bc863
commit 7f8bb5d6c3
3 changed files with 10 additions and 8 deletions
+4 -4
View File
@@ -663,14 +663,14 @@ onMounted(() => {
</td>
<td class="p-2 text-center">
<UiSwitch
:checked="formData.entry_files.includes(file.file_path)"
@update:checked="toggleEntryFile(file.file_path)"
:model-value="formData.entry_files.includes(file.file_path)"
@update:model-value="toggleEntryFile(file.file_path)"
/>
</td>
<td class="p-2 text-center">
<UiSwitch
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
@update:checked="toggleDesktopShortcut(file.file_path)"
:model-value="formData.desktop_shortcut_files.includes(file.file_path)"
@update:model-value="toggleDesktopShortcut(file.file_path)"
/>
</td>
</tr>
+4 -4
View File
@@ -585,14 +585,14 @@ onMounted(() => {
</td>
<td class="p-2 text-center">
<UiSwitch
:checked="formData.entry_files.includes(file.file_path)"
@update:checked="toggleEntryFile(file.file_path)"
:model-value="formData.entry_files.includes(file.file_path)"
@update:model-value="toggleEntryFile(file.file_path)"
/>
</td>
<td class="p-2 text-center">
<UiSwitch
:checked="formData.desktop_shortcut_files.includes(file.file_path)"
@update:checked="toggleDesktopShortcut(file.file_path)"
:model-value="formData.desktop_shortcut_files.includes(file.file_path)"
@update:model-value="toggleDesktopShortcut(file.file_path)"
/>
</td>
</tr>