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 { defineStore } from 'pinia'
|
||||||
import { lang } from '@/langs/index.js'
|
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 {
|
import {
|
||||||
CheckForUpdate,
|
CheckForUpdate,
|
||||||
GetBuildInDecoder,
|
GetBuildInDecoder,
|
||||||
|
@ -427,15 +427,15 @@ const usePreferencesStore = defineStore('preferences', {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
this.decoder[idx] = merge(this.decoder[idx], {
|
let selDecoder = this.decoder[idx]
|
||||||
name: newName || name,
|
selDecoder.name = newName || name
|
||||||
enable,
|
selDecoder.enable = enable
|
||||||
auto,
|
selDecoder.auto = auto
|
||||||
encodePath,
|
selDecoder.encodePath = encodePath
|
||||||
encodeArgs,
|
selDecoder.encodeArgs = encodeArgs
|
||||||
decodePath,
|
selDecoder.decodePath = decodePath
|
||||||
decodeArgs,
|
selDecoder.decodeArgs = decodeArgs
|
||||||
})
|
this.decoder[idx] = selDecoder
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue