1
0
mirror of https://github.com/tiny-craft/tiny-rdm.git synced 2025-04-11 16:48:05 +08:00

fix: last preferences did not clone correctly

This commit is contained in:
tiny-craft 2023-10-27 13:01:18 +08:00
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
}