Skip to content

Commit 69e3d10

Browse files
committed
fix: 修复系统恢复默认样式不生效的缺陷
1 parent 7aee911 commit 69e3d10

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/dataset/serializers/image_serializers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ def get(self, with_valid=True):
4141
raise NotFound404(404, "不存在的图片")
4242
if image.image_name.endswith('.svg'):
4343
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/svg+xml'})
44+
# gif
45+
elif image.image_name.endswith('.gif'):
46+
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/gif'})
4447
return HttpResponse(image.image, status=200, headers={'Content-Type': 'image/png'})

ui/src/views/theme/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function resetTheme() {
305305
306306
function resetForm(val: string) {
307307
themeForm.value =
308-
val === 'base'
308+
val === 'login'
309309
? {
310310
...themeForm.value,
311311
theme: themeForm.value.theme,

0 commit comments

Comments
 (0)