mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
feat:
This commit is contained in:
parent
65d621e8be
commit
ec65fae314
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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 = ['*']
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue