新增下载页面

This commit is contained in:
zyj
2025-10-21 18:30:40 +08:00
parent 2bb0c7dc98
commit 60f4995dc7
12 changed files with 953 additions and 204 deletions

View File

@@ -27,10 +27,12 @@ func main() {
// 'Assets' configures the asset server with the 'FS' variable pointing to the frontend files.
// 'Bind' is a list of Go struct instances. The frontend has access to the methods of these instances.
// 'Mac' options tailor the application when running an macOS.
appService := &App{}
app := application.New(application.Options{
Name: "wails3-nuxt",
Description: "A demo of using raw HTML & CSS",
Services: []application.Service{
application.NewService(appService),
application.NewService(&GreetService{}),
},
Assets: application.AssetOptions{
@@ -55,8 +57,10 @@ func main() {
},
BackgroundColour: application.NewRGB(27, 38, 54),
URL: "/",
Width: 1240,
Height: 850,
})
appService.app = app
// Create a goroutine that emits an event containing the current time every second.
// The frontend can listen to this event and update the UI accordingly.
go func() {