()
| 219 | } |
| 220 | |
| 221 | getConfig2Save() { |
| 222 | let config2Save: { [key: string]: string } = store.state.config; |
| 223 | this.notSavingKeys.map((key) => delete config2Save[key]); //去掉不需要保存的 |
| 224 | return config2Save; |
| 225 | } |
| 226 | |
| 227 | save() { |
| 228 | writeFileSync(this.file, JSON.stringify(this.getConfig2Save(), null, 4)); |
no outgoing calls
no test coverage detected