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:
|
def get_db_setting(self) -> dict:
|
||||||
return {
|
return {
|
||||||
"NAME": self.get('DB_NAME'),
|
"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('
|
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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = CONFIG.get_debug()
|
||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
|||||||
@ -39,14 +39,14 @@ const paginationConfig = reactive({
|
|||||||
|
|
||||||
function closeHandel() {}
|
function closeHandel() {}
|
||||||
|
|
||||||
function getChatRecord(chatId) {
|
function getChatRecord(chatId:string) {
|
||||||
logApi.getChatRecordLog(id as string, chatId, paginationConfig, loading).then((res) => {
|
logApi.getChatRecordLog(id as string, chatId, paginationConfig, loading).then((res) => {
|
||||||
// tableData.value = res.data.records
|
// tableData.value = res.data.records
|
||||||
paginationConfig.total = res.data.total
|
paginationConfig.total = res.data.total
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = (id) => {
|
const open = (id:string) => {
|
||||||
getChatRecord(id)
|
getChatRecord(id)
|
||||||
visible.value = true
|
visible.value = true
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user