File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 "code/gen/page"
66 "code/gen/runner"
77 "code/gen/util/logger"
8- "fmt"
98 "github.com/sirupsen/logrus"
109 "net/url"
1110 "os"
@@ -49,7 +48,6 @@ func main() {
4948 logger .Log .WithFields (logrus.Fields {"data" : "" }).Info ("项目配置" )
5049 })
5150 fileItem := fyne .NewMenuItem ("模板文件" , func () {
52- fmt .Println ()
5351 pwd , _ := os .Getwd ()
5452 u , _ := url .Parse (pwd + "/resource/temp/" )
5553 _ = a .OpenURL (u )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import (
1212 "fyne.io/fyne/v2/dialog"
1313 "fyne.io/fyne/v2/widget"
1414 "github.com/sirupsen/logrus"
15+ "net/url"
16+ "os"
1517 "strings"
1618)
1719
@@ -116,6 +118,9 @@ func AutoScreen(win fyne.Window) fyne.CanvasObject {
116118 dialog .ShowError (err , win )
117119 } else {
118120 dialog .ShowInformation ("提示" , "代码生成成功" , win )
121+ pwd , _ := os .Getwd ()
122+ u , _ := url .Parse (pwd + "/resource/autocode/" )
123+ fyne .CurrentApp ().OpenURL (u )
119124 }
120125 } else {
121126 dialog .ShowError (errors .New ("请选择表" ), win )
You can’t perform that action at this time.
0 commit comments