修复windows环境下css问题
This commit is contained in:
parent
17fd31e16a
commit
682f8f451d
6
main.go
6
main.go
|
@ -9,6 +9,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
"mime"
|
||||||
|
|
||||||
"github.com/b3log/wide/conf"
|
"github.com/b3log/wide/conf"
|
||||||
"github.com/b3log/wide/editor"
|
"github.com/b3log/wide/editor"
|
||||||
|
@ -48,6 +49,11 @@ func init() {
|
||||||
|
|
||||||
// 定时检查无效会话
|
// 定时检查无效会话
|
||||||
session.FixedTimeRelease()
|
session.FixedTimeRelease()
|
||||||
|
|
||||||
|
//解决Windows环境下问题
|
||||||
|
mime.AddExtensionType(".css", "text/css")
|
||||||
|
mime.AddExtensionType(".js", "application/x-javascript")
|
||||||
|
mime.AddExtensionType(".json", "application/json")
|
||||||
}
|
}
|
||||||
|
|
||||||
// 登录.
|
// 登录.
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
go install
|
||||||
|
wide
|
||||||
|
pause
|
Loading…
Reference in New Issue