Skip to content

Commit

Permalink
fix: 修复系统恢复默认样式不生效的缺陷
Browse files Browse the repository at this point in the history
  • Loading branch information
wxg0103 committed Oct 29, 2024
1 parent 7aee911 commit 69e3d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/dataset/serializers/image_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ def get(self, with_valid=True):
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'})
2 changes: 1 addition & 1 deletion ui/src/views/theme/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ function resetTheme() {
function resetForm(val: string) {
themeForm.value =
val === 'base'
val === 'login'
? {
...themeForm.value,
theme: themeForm.value.theme,
Expand Down

0 comments on commit 69e3d10

Please sign in to comment.