Skip to content

Commit d879d56

Browse files
committed
fix: bugFixed
1 parent 2dce15c commit d879d56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.21
55
require (
66
github.com/gin-gonic/gin v1.9.1
77
github.com/redis/go-redis/v9 v9.5.1
8-
gopkg.in/yaml.v2 v2.4.0
98
)
109

1110
require (

process/webutil/webutil.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"github.com/gin-gonic/gin"
66
"github.com/soxft/busuanzi/app/middleware"
7+
"github.com/soxft/busuanzi/config"
78
"github.com/spf13/viper"
89
"log"
910
"net/url"
@@ -45,6 +46,7 @@ func Init() {
4546
}
4647
r.Use(gin.Recovery())
4748
r.Use(middleware.Cors())
49+
r.LoadHTMLFiles(config.DistPath + "/index.html")
4850

4951
// routers
5052
initRoute(r)

0 commit comments

Comments
 (0)