Skip to content

Commit 251c3de

Browse files
committed
main.png
1 parent e58c15d commit 251c3de

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
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)

page/autocode.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

resource/images/main.png

24.6 KB
Loading

0 commit comments

Comments
 (0)