fix:修复添加刷新,修改初始化

This commit is contained in:
faiz 2024-10-18 11:34:30 +08:00
parent 551825187c
commit 179167c194
1 changed files with 4 additions and 6 deletions

View File

@ -405,12 +405,10 @@ export default {
this.$message({ this.$message({
message: "线路添加成功", message: "线路添加成功",
type: "success", type: "success",
onclose: async () => { });
let res = await getProductsList(); let res = await getProductsList();
this.options = res.data.data; this.options = res.data.data;
this.platformList = res.ext.oss; this.platformList = res.ext.oss;
},
});
} }
} else { } else {
return false; return false;
@ -444,7 +442,7 @@ export default {
// console.log(res.data.data); // console.log(res.data.data);
this.options = res.data.data; this.options = res.data.data;
this.platformList = res.ext.oss; this.platformList = res.ext.oss;
this.item = item; this.item = { ...item };
this.item.product_ids = item.product_ids.split(",").map((item) => { this.item.product_ids = item.product_ids.split(",").map((item) => {
return Number(item); return Number(item);
}); });