fix: remove leftover AutoRun, replace checkbox with switch in file list

This commit is contained in:
Trae AI
2026-06-18 19:53:16 +08:00
parent 8d5d8b1461
commit a0c817571a
3 changed files with 12 additions and 21 deletions
-1
View File
@@ -262,7 +262,6 @@ func handleAppCheckUpdate(c *gin.Context) {
"entry_file": latestVersion.EntryFile, "entry_file": latestVersion.EntryFile,
"entry_files": latestVersion.EntryFiles, "entry_files": latestVersion.EntryFiles,
"desktop_shortcut_files": latestVersion.DesktopShortcutFiles, "desktop_shortcut_files": latestVersion.DesktopShortcutFiles,
"auto_run": latestVersion.AutoRun,
"default_install_dir": latestVersion.DefaultInstallDir, "default_install_dir": latestVersion.DefaultInstallDir,
"update_notes": latestVersion.Description, "update_notes": latestVersion.Description,
"update_strategy": updateStrategy, "update_strategy": updateStrategy,
+6 -10
View File
@@ -675,20 +675,16 @@ onMounted(() => {
{{ formatFileSize(file.file_size) }} {{ formatFileSize(file.file_size) }}
</td> </td>
<td class="p-2 text-center"> <td class="p-2 text-center">
<input <UiSwitch
type="checkbox"
:checked="formData.entry_files.includes(file.file_path)" :checked="formData.entry_files.includes(file.file_path)"
class="h-4 w-4 rounded border-gray-300 cursor-pointer" @update:checked="toggleEntryFile(file.file_path)"
@change="toggleEntryFile(file.file_path)" />
>
</td> </td>
<td class="p-2 text-center"> <td class="p-2 text-center">
<input <UiSwitch
type="checkbox"
:checked="formData.desktop_shortcut_files.includes(file.file_path)" :checked="formData.desktop_shortcut_files.includes(file.file_path)"
class="h-4 w-4 rounded border-gray-300 cursor-pointer" @update:checked="toggleDesktopShortcut(file.file_path)"
@change="toggleDesktopShortcut(file.file_path)" />
>
</td> </td>
</tr> </tr>
</tbody> </tbody>
+6 -10
View File
@@ -596,20 +596,16 @@ onMounted(() => {
{{ formatFileSize(file.file_size) }} {{ formatFileSize(file.file_size) }}
</td> </td>
<td class="p-2 text-center"> <td class="p-2 text-center">
<input <UiSwitch
type="checkbox"
:checked="formData.entry_files.includes(file.file_path)" :checked="formData.entry_files.includes(file.file_path)"
class="h-4 w-4 rounded border-gray-300 cursor-pointer" @update:checked="toggleEntryFile(file.file_path)"
@change="toggleEntryFile(file.file_path)" />
>
</td> </td>
<td class="p-2 text-center"> <td class="p-2 text-center">
<input <UiSwitch
type="checkbox"
:checked="formData.desktop_shortcut_files.includes(file.file_path)" :checked="formData.desktop_shortcut_files.includes(file.file_path)"
class="h-4 w-4 rounded border-gray-300 cursor-pointer" @update:checked="toggleDesktopShortcut(file.file_path)"
@change="toggleDesktopShortcut(file.file_path)" />
>
</td> </td>
</tr> </tr>
</tbody> </tbody>