feat: updates

This commit is contained in:
qier222 2023-03-03 03:12:27 +08:00
parent 9a52681687
commit 840a5b8e9b
No known key found for this signature in database
104 changed files with 1645 additions and 13494 deletions

View file

@ -12,6 +12,7 @@ import { Thumbar } from './windowsTaskbar'
import fastFolderSize from 'fast-folder-size'
import path from 'path'
import prettyBytes from 'pretty-bytes'
import prisma from './prisma'
const on = <T extends keyof IpcChannelsParams>(
channel: T,
@ -203,7 +204,7 @@ function initOtherIpcMain() {
* 退
*/
handle(IpcChannels.Logout, async () => {
// db.truncate(Tables.AccountData)
await prisma.accountData.deleteMany({})
return true
})