From edb0fc9d0aefadafbfd6e8244bbf2e43066c628e Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Fri, 15 Jan 2021 22:29:06 +0200 Subject: [PATCH] fix not serializable after editing array --- src/web/Config.ts | 4 ++-- src/web/settings/SettingsWindow.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/Config.ts b/src/web/Config.ts index f2c574f8..08fe3e6f 100644 --- a/src/web/Config.ts +++ b/src/web/Config.ts @@ -1,4 +1,4 @@ -import { reactive, toRaw } from 'vue' +import { reactive } from 'vue' import { MainProcess } from '@/ipc/main-process-bindings' import { Config as ConfigType } from '@/ipc/types' import { PUSH_CONFIG } from '@/ipc/ipc-event' @@ -16,7 +16,7 @@ class ConfigService { } saveConfig () { - MainProcess.saveConfig(toRaw(this.store)) + MainProcess.saveConfig(JSON.parse(JSON.stringify(this.store))) } } diff --git a/src/web/settings/SettingsWindow.vue b/src/web/settings/SettingsWindow.vue index fb38b530..6a902e55 100644 --- a/src/web/settings/SettingsWindow.vue +++ b/src/web/settings/SettingsWindow.vue @@ -28,7 +28,7 @@