fix: 修复系统恢复默认样式不生效的缺陷

This commit is contained in:
wxg0103 2024-10-29 15:17:50 +08:00
parent 7aee911430
commit 69e3d1020e
2 changed files with 4 additions and 1 deletions

View File

@ -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'})

View File

@ -305,7 +305,7 @@ function resetTheme() {
function resetForm(val: string) {
themeForm.value =
val === 'base'
val === 'login'
? {
...themeForm.value,
theme: themeForm.value.theme,