修改:1、增加webroot目录下layui目录的映射

This commit is contained in:
pengwang 2021-06-22 21:12:40 +08:00
parent 17ff20b22e
commit 1ea72ed88c
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ func RouterWeb() {
exeCurDir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
router.Static("/static", exeCurDir+"/webroot/static")
router.Static("/plugin", exeCurDir+"/plugin/")
router.Static("/layui", exeCurDir+"/webroot/layui")
router.StaticFile("/", exeCurDir+"/webroot/index.html")
router.StaticFile("/favicon.ico", exeCurDir+"/webroot/favicon.ico")