This commit is contained in:
gotoeasy 2023-08-18 23:33:07 +08:00
parent f5112fd45f
commit bc91de2a52
3 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ func StaticFileController(req *gweb.HttpRequest) *gweb.HttpResult {
contentType := getContentType(urlPath)
file, err := www.Static.ReadFile(getStaticFilePath(urlPath))
if err != nil && os.IsNotExist(err) {
cmn.Error("文件找不到", getStaticFilePath(urlPath), err)
req.ResponseData(404, contentType, cmn.StringToBytes("not found"))
} else {
req.ResponseData(200, contentType, file)

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -170,7 +170,7 @@ onMounted(async () => {
height: 100%;
min-height: 520px;
background-color: #eee;
background-image: url('/image/login_bg.svg');
background-image: url('/image/loginbg.svg');
background-size: 100% 100%;
background-size: cover;