mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-05-11 12:38:36 +08:00
fix: can not remove argument from custom decoder (#347)
This commit is contained in:
parent
2388f309d8
commit
eaa68df583
@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { lang } from '@/langs/index.js'
|
||||
import { cloneDeep, findIndex, get, isEmpty, join, map, merge, pick, set, some, split } from 'lodash'
|
||||
import { cloneDeep, findIndex, get, isEmpty, join, map, pick, set, some, split } from 'lodash'
|
||||
import {
|
||||
CheckForUpdate,
|
||||
GetBuildInDecoder,
|
||||
@ -427,15 +427,15 @@ const usePreferencesStore = defineStore('preferences', {
|
||||
return false
|
||||
}
|
||||
|
||||
this.decoder[idx] = merge(this.decoder[idx], {
|
||||
name: newName || name,
|
||||
enable,
|
||||
auto,
|
||||
encodePath,
|
||||
encodeArgs,
|
||||
decodePath,
|
||||
decodeArgs,
|
||||
})
|
||||
let selDecoder = this.decoder[idx]
|
||||
selDecoder.name = newName || name
|
||||
selDecoder.enable = enable
|
||||
selDecoder.auto = auto
|
||||
selDecoder.encodePath = encodePath
|
||||
selDecoder.encodeArgs = encodeArgs
|
||||
selDecoder.decodePath = decodePath
|
||||
selDecoder.decodeArgs = decodeArgs
|
||||
this.decoder[idx] = selDecoder
|
||||
return true
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user