diff --git a/src/components/deskModule/SystemMonitor/common.ts b/src/components/deskModule/SystemMonitor/common.ts index f5b55d9..0df0cd4 100644 --- a/src/components/deskModule/SystemMonitor/common.ts +++ b/src/components/deskModule/SystemMonitor/common.ts @@ -77,10 +77,11 @@ export async function deleteByIndex(index: number): Promise { const data = await getAll() if (data[index]) data.splice(index, 1) - saveAll(data) + await saveAll(data) } catch (error) { success = false + console.error(error) } return success diff --git a/src/components/deskModule/SystemMonitor/index.vue b/src/components/deskModule/SystemMonitor/index.vue index 4553b98..22e055f 100644 --- a/src/components/deskModule/SystemMonitor/index.vue +++ b/src/components/deskModule/SystemMonitor/index.vue @@ -1,14 +1,13 @@