fix: 修复系统恢复默认样式不生效的缺陷
parent
7aee911430
commit
69e3d1020e
|
|
@ -41,4 +41,7 @@ class ImageSerializer(serializers.Serializer):
|
||||||
raise NotFound404(404, "不存在的图片")
|
raise NotFound404(404, "不存在的图片")
|
||||||
if image.image_name.endswith('.svg'):
|
if image.image_name.endswith('.svg'):
|
||||||
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/svg+xml'})
|
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'})
|
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/png'})
|
||||||
|
|
|
||||||
|
|
@ -305,7 +305,7 @@ function resetTheme() {
|
||||||
|
|
||||||
function resetForm(val: string) {
|
function resetForm(val: string) {
|
||||||
themeForm.value =
|
themeForm.value =
|
||||||
val === 'base'
|
val === 'login'
|
||||||
? {
|
? {
|
||||||
...themeForm.value,
|
...themeForm.value,
|
||||||
theme: themeForm.value.theme,
|
theme: themeForm.value.theme,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue