From 1230378a76583b8435639d0eb154957eba7b820c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=A3=E6=A9=99?= <2625835752@qq.com> Date: Sat, 28 May 2022 15:35:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20go=20build=20=E7=9B=B8=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c582b69..600e51b 100644 --- a/main.go +++ b/main.go @@ -21,10 +21,10 @@ func main() { http.Handle("/", http.FileServer(http.FS(dist))) // windows - exec.Command(`cmd`, `/c`, `start`, `http://127.0.0.1:`+PORT+"/static/").Start() + exec.Command(`cmd`, `/c`, `start`, `http://127.0.0.1:`+PORT+"/dist/").Start() // mac - exec.Command(`open`, `http://127.0.0.1:`+PORT+"/static/").Start() + // exec.Command(`open`, `http://127.0.0.1:`+PORT+"/dist/").Start() http.ListenAndServe(":"+PORT, nil) }