Commit bfd05c87 authored by zhengke's avatar zhengke

保存模版时 删除TemplateList TemplateDataSource

parent c0022c11
......@@ -284,8 +284,10 @@ const SetTripTemplateConfig = async () => {
const setTemplate = async () =>{
let arr = JSON.parse(JSON.stringify(slides.value))
arr.forEach(x=>{
delete x.TemplateList
delete x.TemplateDataSource
x.elements.forEach(y=>{
delete y.TemplateList
delete y.TemplateDataSource
})
})
if(ConfigId.value&&FeatureImg.value.length>0){
FeatureImg.value.forEach(item=>{
......@@ -341,6 +343,7 @@ const setTemplate = async () =>{
// }
// }
}
queryObj.value.TempData = JSON.stringify(arr)
datas.loading = true
if(model.value&&userInfo.value.IsEditTripTemplate==1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment