fix: 保存环境报错

This commit is contained in:
chenjianxing 2021-05-14 19:36:09 +08:00 committed by jianxing
parent 8c25d9c2d5
commit 8984d391db
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@
if (param.id) {
url = '/api/environment/update';
}
this.result = this.$post(url, param, response => {
this.result = this.$fileUpload(url, null, [], param, response => {
if (!param.id) {
environment.id = response.data;
}

View File

@ -93,7 +93,7 @@ export default {
JSON.parse(fileString).map(env => {
//projectIdnullprojectId
env.projectId = this.currentProjectId === '' ? null : this.currentProjectId;
this.$post('/api/environment/add', env, response => {
this.$fileUpload('/api/environment/add', null,[], env, response => {
this.$emit('refresh');
this.$success(this.$t('commons.save_success'));
})