From b3899d4a97bb7e16b1fdf8361525d35ea6d779bb Mon Sep 17 00:00:00 2001 From: youngS Date: Wed, 1 Dec 2021 17:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/apps/FirApps.vue | 3 +++ fir_ser/fir_ser/settings.py | 1 + 2 files changed, 4 insertions(+) diff --git a/fir_client/src/components/apps/FirApps.vue b/fir_client/src/components/apps/FirApps.vue index 4c117d3..140a1ba 100644 --- a/fir_client/src/components/apps/FirApps.vue +++ b/fir_client/src/components/apps/FirApps.vue @@ -703,6 +703,7 @@ export default { } else { this.$message.error("应用 " + analyseappinfo.appname + " 上传token获取失败,请刷新重试") + this.multiFileList.splice(this.multiFileList.indexOf(file), 1) } loading.close(); }, { @@ -712,10 +713,12 @@ export default { } else { this.$message.error("文件 " + file.raw.name + " 解析失败,请检查是否为APP应用") + this.multiFileList.splice(this.multiFileList.indexOf(file), 1) } }, err => { loading.close(); this.$message.error("应用解析失败,请检查是否为APP应用"); + this.multiFileList.splice(this.multiFileList.indexOf(file), 1) // eslint-disable-next-line no-console console.log('Error ', err); }); diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index 3045743..802b293 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -94,6 +94,7 @@ DATABASES = { 'HOST': DBCONF.host, 'PORT': DBCONF.port, 'CONN_MAX_AGE': 3600, + 'CONN_MAX_AGE': 600, # 设置MySQL的驱动 # 'OPTIONS': {'init_command': 'SET storage_engine=INNODB'}, 'OPTIONS': {'init_command': 'SET sql_mode="STRICT_TRANS_TABLES"', 'charset': 'utf8mb4'}