fix: 数据库数据表高度自适应&格式化sql后无法修改

This commit is contained in:
meilin.huang
2022-04-10 10:41:14 +08:00
parent d3c842ca92
commit 6e38ad320e
4 changed files with 81 additions and 64 deletions

View File

@@ -353,6 +353,9 @@ export default defineComponent({
if (path.endsWith('nginx.conf')) {
return 'nginx';
}
if (path.endsWith('sql')) {
return 'sql';
}
if (path.endsWith('yaml') || path.endsWith('yml')) {
return 'yaml';
}
@@ -488,7 +491,7 @@ export default defineComponent({
headers: { 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryF1uyUD0tWdqmJqpl' },
onUploadProgress: onUploadProgress,
baseURL: '',
timeout: 60*60*1000,
timeout: 60 * 60 * 1000,
})
.then(() => {
ElMessage.success('上传成功');