+
diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue
index 425ca0ed..1930bf73 100644
--- a/src/components/model-custom/model-custom-content.vue
+++ b/src/components/model-custom/model-custom-content.vue
@@ -159,6 +159,18 @@ const accomplish = () => {
if (!draglist.value) {
return;
} else {
+ const list = draglist.value.diy_data.sort((a, b) => a.com_data.z_index - b.com_data.z_index);
+ let z_index = 0;
+ if (list.length > 0) {
+ list.forEach((item) => {
+ if (item.com_data.z_index < 0) {
+ const new_z_index = z_index - 1;
+ item.com_data.z_index = new_z_index;
+ z_index = new_z_index;
+ }
+ });
+ }
+ console.log(draglist.value.diy_data);
form.custom_list = draglist.value.diy_data;
}
form.height = center_height.value;