()
| 298 | // ========== Stats ========== |
| 299 | |
| 300 | refreshStats() { |
| 301 | this.statsLoading = true |
| 302 | IPC.send('app-fork:openCode', 'getStats', this.statsDays).then((key: string, res: any) => { |
| 303 | IPC.off(key) |
| 304 | if (res?.code === 0) { |
| 305 | this.stats = res?.data ?? [] |
| 306 | } |
| 307 | this.statsLoading = false |
| 308 | }) |
| 309 | } |
| 310 | |
| 311 | taskConfirm() { |
| 312 | this.installing = false |