mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复系统恢复默认样式不生效的缺陷
This commit is contained in:
parent
7aee911430
commit
69e3d1020e
|
|
@ -41,4 +41,7 @@ class ImageSerializer(serializers.Serializer):
|
|||
raise NotFound404(404, "不存在的图片")
|
||||
if image.image_name.endswith('.svg'):
|
||||
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/svg+xml'})
|
||||
# gif
|
||||
elif image.image_name.endswith('.gif'):
|
||||
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/gif'})
|
||||
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/png'})
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ function resetTheme() {
|
|||
|
||||
function resetForm(val: string) {
|
||||
themeForm.value =
|
||||
val === 'base'
|
||||
val === 'login'
|
||||
? {
|
||||
...themeForm.value,
|
||||
theme: themeForm.value.theme,
|
||||
|
|
|
|||
Loading…
Reference in New Issue