修复异常问题

qrnn
youngS 3 years ago
parent 27b8a21556
commit b3899d4a97
  1. 3
      fir_client/src/components/apps/FirApps.vue
  2. 1
      fir_ser/fir_ser/settings.py

@ -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);
});

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

Loading…
Cancel
Save