优化一些功能

This commit is contained in:
yml2213
2026-07-29 14:02:56 +08:00
parent 2c88edb741
commit f64838f8db
19 changed files with 313 additions and 85 deletions
-16
View File
@@ -5,19 +5,3 @@ declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}
// 统一从 Wails 自动生成的强类型绑定派生 window.go.app.App 的类型声明,
// 避免手写声明与后端契约漂移。后端方法签名变更后重新运行 `wails generate`
// 会更新 wailsjs/go/app/App.d.ts,此处类型随之更新;若前端引用了已删除或
// 已重命名的方法,TypeScript 编译(vue-tsc)会直接报错。
import type * as GoApp from './wailsjs/go/app/App'
declare global {
interface Window {
go: {
app: {
App: typeof GoApp
}
}
}
}