This commit is contained in:
shaohuzhang1 2023-12-07 15:42:29 +08:00
parent 65d621e8be
commit ec65fae314
3 changed files with 6 additions and 3 deletions

View File

@ -98,6 +98,9 @@ class Config(dict):
}
def get_debug(self) -> bool:
return self.get('DEBUG') if 'DEBUG' in self else True
def get_db_setting(self) -> dict:
return {
"NAME": self.get('DB_NAME'),

View File

@ -17,7 +17,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-g1u*$)1ddn20_3orw^f+g4(i(2dacj^awe*2vh-$icgqwfnbq('
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = CONFIG.get_debug()
ALLOWED_HOSTS = ['*']

View File

@ -39,14 +39,14 @@ const paginationConfig = reactive({
function closeHandel() {}
function getChatRecord(chatId) {
function getChatRecord(chatId:string) {
logApi.getChatRecordLog(id as string, chatId, paginationConfig, loading).then((res) => {
// tableData.value = res.data.records
paginationConfig.total = res.data.total
})
}
const open = (id) => {
const open = (id:string) => {
getChatRecord(id)
visible.value = true
}