优化前端

This commit is contained in:
yml2213
2026-06-26 10:56:25 +08:00
parent 88a386b588
commit 54b5bd90ae
39 changed files with 6796 additions and 216 deletions
+31
View File
@@ -0,0 +1,31 @@
/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
// Wails Go 绑定类型声明
interface Window {
go: {
main: {
App: {
LoadProducts: (refresh: boolean) => Promise<any>
GetAccounts: () => Promise<any[]>
ReloadAccounts: () => Promise<any>
StartSeckill: (accountProducts: Record<string, string>) => Promise<any>
SetSchedule: (req: any) => Promise<any>
CancelSchedule: () => Promise<any>
GetResults: () => Promise<Record<string, string>>
GetLogs: (since: number) => Promise<any>
GetTime: () => Promise<any>
ClearResults: () => Promise<any>
QueryScore: (accountName: string) => Promise<any>
GetVersion: () => Promise<string>
GetSettings: () => Promise<any>
SaveSettings: (cfg: any) => Promise<any>
}
}
}
}