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'}