|
@@ -720,6 +720,8 @@ export default {
|
|
|
if (!this.pushFrom.version) {
|
|
|
return this.$message({ message: '请输入版本', type: 'warning' });
|
|
|
}
|
|
|
+ // 拷贝一下 pushFrom
|
|
|
+ let pushFrom = JSON.parse(JSON.stringify(this.pushFrom));
|
|
|
if (this.form.isPage){
|
|
|
const params = [
|
|
|
{
|
|
@@ -738,16 +740,16 @@ export default {
|
|
|
}
|
|
|
];
|
|
|
// 确保 this.pushFrom.extJson 存在并且 params 是一个数组
|
|
|
- if (!this.pushFrom.extJson) {
|
|
|
- this.pushFrom.extJson = {};
|
|
|
+ if (!pushFrom.extJson) {
|
|
|
+ pushFrom.extJson = {};
|
|
|
}
|
|
|
- if (!Array.isArray(this.pushFrom.extJson.params)) {
|
|
|
- this.pushFrom.extJson.params = [];
|
|
|
+ if (!Array.isArray(pushFrom.extJson.params)) {
|
|
|
+ pushFrom.extJson.params = [];
|
|
|
}
|
|
|
- this.pushFrom.extJson.params = params.concat(this.pushFrom.extJson.params);
|
|
|
+ pushFrom.extJson.params = params.concat(pushFrom.extJson.params);
|
|
|
}
|
|
|
- this.pushFrom.extJson = JSON.stringify(this.pushFrom.extJson);
|
|
|
- dataapiRelease(this.pushFrom).then(res => {
|
|
|
+ pushFrom.extJson = JSON.stringify(pushFrom.extJson);
|
|
|
+ dataapiRelease(pushFrom).then(res => {
|
|
|
this.$message({ message: '已提交', type: 'success' });
|
|
|
this.showPush = false;
|
|
|
});
|