Refactor app navigation and enhance background handling in various views

- Added error handling for router navigation to prevent unhandled promise rejections.
- Improved background image management in Dashboard.vue to dynamically set images based on route.
- Introduced timers for managing loading states and cleanup on component unmount in Apps.vue, Marketplace.vue, and other views.
- Updated app detail navigation to ensure smoother transitions and error handling.
- Enhanced clipboard copy functionality in Settings.vue with improved user feedback.
This commit is contained in:
Dorian
2026-03-01 18:07:35 +00:00
parent 7a05e11834
commit 94eb1e4283
7 changed files with 218 additions and 399 deletions
+2 -2
View File
@@ -621,6 +621,7 @@ function goBack() {
router.back()
}
function launchApp() {
if (!pkg.value) return
@@ -771,8 +772,7 @@ async function confirmUninstall() {
try {
await store.uninstallPackage(appId.value)
// Navigate back to apps after uninstall
router.push('/dashboard/apps')
router.push('/dashboard/apps').catch(() => {})
} catch (err) {
console.error('Failed to uninstall app:', err)
alert('Failed to uninstall app')