mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
svg
This commit is contained in:
parent
f5112fd45f
commit
bc91de2a52
@ -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)
|
||||
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user