From ac333f6027750c56fef2db320271246cc5fc5b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E8=83=9C=E8=88=9F?= <1650473152@qq.com> Date: Sun, 12 Mar 2023 23:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/configs/config.py | 1 + templates/admin/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/configs/config.py b/applications/configs/config.py index 3545915..f3e2cb7 100644 --- a/applications/configs/config.py +++ b/applications/configs/config.py @@ -42,6 +42,7 @@ class BaseConfig: UPLOADED_PHOTOS_DEST = 'static/upload' UPLOADED_FILES_ALLOW = ['gif', 'jpg'] + UPLOADS_AUTOSERVE = True # JSON配置 JSON_AS_ASCII = False diff --git a/templates/admin/index.html b/templates/admin/index.html index 50fb042..94fff38 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -2,7 +2,7 @@ {% include 'admin/common/header.html' %} - Pear Admin Layui + Pear Admin Flask