File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ func Routers() *gin.Engine {
3434 // VUE_APP_BASE_API = /
3535 // VUE_APP_BASE_PATH = http://localhost
3636 // 然后执行打包命令 npm run build。在打开下面3行注释
37- Router .Static ("/favicon.ico" , "./dist/favicon.ico" )
38- Router .Static ("/static" , "./dist/static" ) // dist里面的静态资源
39- Router .StaticFile ("/" , "./dist/index.html" ) // 前端网页入口页面
37+ // Router.Static("/favicon.ico", "./dist/favicon.ico")
38+ // Router.Static("/static", "./dist/static") // dist里面的静态资源
39+ // Router.StaticFile("/", "./dist/index.html") // 前端网页入口页面
4040
4141 Router .StaticFS (global .GVA_CONFIG .Local .StorePath , http .Dir (global .GVA_CONFIG .Local .StorePath )) // 为用户头像和文件提供静态地址
4242 // Router.Use(middleware.LoadTls()) // 如果需要使用https 请打开此中间件 然后前往 core/server.go 将启动模式 更变为 Router.RunTLS("端口","你的cre/pem文件","你的key文件")
You can’t perform that action at this time.
0 commit comments