mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-24 13:45:50 +00:00
fix not serializable after editing array
This commit is contained in:
+2
-2
@@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, toRaw } from 'vue'
|
||||
import { defineComponent } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { Config } from '@/web/Config'
|
||||
import { MainProcess } from '@/ipc/main-process-bindings'
|
||||
@@ -42,7 +42,7 @@ export default defineComponent({
|
||||
return {
|
||||
t,
|
||||
save () {
|
||||
MainProcess.closeSettingsWindow(toRaw(Config.store))
|
||||
MainProcess.closeSettingsWindow(JSON.parse(JSON.stringify(Config.store)))
|
||||
},
|
||||
cancel () {
|
||||
MainProcess.closeSettingsWindow()
|
||||
|
||||
Reference in New Issue
Block a user