diff --git a/bin/utils/error.py b/bin/utils/error.py index 5c29ca7..f63e16b 100644 --- a/bin/utils/error.py +++ b/bin/utils/error.py @@ -6,6 +6,7 @@ # @File Name: error.py +from typing import Optional from flask import jsonify from flask import Response from db.db import (update_data, fetch_table) @@ -15,7 +16,7 @@ class ErrorProcess: def __init__(self): self.msg_template = {'code': -2, 'msg': '', - 'data': None} + 'data': Optional[list]} def get_theme_list(self) -> Response: """ diff --git a/static/index.html b/static/index.html index 5d65654..f564326 100644 --- a/static/index.html +++ b/static/index.html @@ -16,11 +16,16 @@
效果应该是这样的:
-效果是这样的↓
+