fix: 多帐号设置未更新

未填写对应的config_n导致沿用之前的设置
This commit is contained in:
shanmite 2021-11-08 11:31:43 +08:00
parent c2bd7b15ee
commit 8c7a6d13d6

View File

@ -335,10 +335,7 @@ const config = {
* @param {string} n
*/
updata(n) {
const new_config = this.raw_config()[`config_${n}`];
if (new_config) {
this.setObject(new_config)
}
this.setObject(this.raw_config()[`config_${n}`])
},
init() {