mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-09-03 21:52:46 +08:00
12 lines
211 B
JavaScript
12 lines
211 B
JavaScript
export function mergeConfig (config, defaultConfig) {
|
|
let res = {}
|
|
for (let i in defaultConfig) {
|
|
res[i] = i in config ? config[i] : defaultConfig[i]
|
|
}
|
|
return res
|
|
}
|
|
|
|
export default {
|
|
mergeConfig
|
|
}
|