fix: last preferences did not clone correctly
This commit is contained in:
parent
85ab6e4377
commit
33051f4e46
|
@ -1,6 +1,6 @@
|
|||
import { defineStore } from 'pinia'
|
||||
import { lang } from '@/langs/index.js'
|
||||
import { clone, find, get, isEmpty, map, pick, set, split } from 'lodash'
|
||||
import { cloneDeep, find, get, isEmpty, map, pick, set, split } from 'lodash'
|
||||
import {
|
||||
CheckForUpdate,
|
||||
GetFontList,
|
||||
|
@ -178,7 +178,7 @@ const usePreferencesStore = defineStore('preferences', {
|
|||
async loadPreferences() {
|
||||
const { success, data } = await GetPreferences()
|
||||
if (success) {
|
||||
this.lastPref = clone(data)
|
||||
this.lastPref = cloneDeep(data)
|
||||
this._applyPreferences(data)
|
||||
i18nGlobal.locale.value = this.currentLanguage
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue