mirror of
https://github.com/misitebao/wails-template-vue
synced 2025-05-24 10:08:02 +08:00
feat: update go program template
This commit is contained in:
parent
d563be5f1a
commit
243d05a976
@ -25,6 +25,7 @@ func (b *App) startup(ctx context.Context) {
|
||||
}
|
||||
|
||||
// shutdown is called at application termination
|
||||
// 在应用程序终止时被调用
|
||||
func (b *App) shutdown(ctx context.Context) {
|
||||
// Perform your teardown here
|
||||
}
|
||||
|
@ -17,14 +17,15 @@ var assets embed.FS
|
||||
func main() {
|
||||
|
||||
// Create application with options
|
||||
// 使用选项创建应用
|
||||
app := NewApp()
|
||||
|
||||
err := wails.Run(&options.App{
|
||||
Title: "{{.ProjectName}}",
|
||||
Width: 1600,
|
||||
Height: 1000,
|
||||
MinWidth: 400,
|
||||
MinHeight: 400,
|
||||
MinWidth: 1400,
|
||||
MinHeight: 980,
|
||||
MaxWidth: 2000,
|
||||
MaxHeight: 1500,
|
||||
DisableResize: false,
|
||||
@ -35,7 +36,7 @@ func main() {
|
||||
RGBA: 0x000000FF,
|
||||
Assets: assets,
|
||||
Windows: &windows.Options{
|
||||
WebviewIsTransparent: false,
|
||||
WebviewIsTransparent: true,
|
||||
WindowBackgroundIsTranslucent: false,
|
||||
DisableWindowIcon: false,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user