diff --git a/src/components/footer-nav/footer-nav-content.vue b/src/components/footer-nav/footer-nav-content.vue index 86c87704..230ce46b 100644 --- a/src/components/footer-nav/footer-nav-content.vue +++ b/src/components/footer-nav/footer-nav-content.vue @@ -5,15 +5,15 @@
展示设置
- 图片加文字 - 图片 - 文字 + 图片加文字 + 图片 + 文字 - 底部固定 - 底部悬浮 + 底部固定 + 底部悬浮 @@ -58,28 +58,29 @@ const props = defineProps({ default: () => {}, }, }); -const form = reactive(props.value); +const form = ref(props.value); const emit = defineEmits(['update:value']); const nav_style_change = (style: any) => { form.value.nav_style = style; - emit('update:value', form); + emit('update:value', form.value); }; const nav_type_change = (type: any) => { form.value.nav_type = type; - emit('update:value', form); + emit('update:value', form.value); }; const nav_content_remove = (index: number) => { form.value.nav_content.splice(index, 1); - emit('update:value', form); + emit('update:value', form.value); }; const add = () => { form.value.nav_content.push({ id: get_math(), name: '', - src: [], - src_checked: [], + img: [], + img_checked: [], link: {}, }); + emit('update:value', form.value); };