From 7af5b1bb7ba023c9f16ae3e2dfce8f6361bdaf14 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Fri, 6 Sep 2024 14:39:04 +0800 Subject: [PATCH] ### commit message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不必要的日志记录和注释,并修复注释中的代码错误。 在`footer-nav`组件中,移除了一行用于调试目的的`console.log`调用,以清理生产代码。此外,该组件的DTS类型错误已被纠正,以确保类型一致性。 在`layout`视图中,一个被注释掉的代码行被正确地更新为反映变量引用的更改,该更改旨在支持数据的动态加载。 --- src/components/footer-nav/index.vue | 1 - src/views/layout/index.vue | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/footer-nav/index.vue b/src/components/footer-nav/index.vue index 0e8ccc3c..1530f4a9 100644 --- a/src/components/footer-nav/index.vue +++ b/src/components/footer-nav/index.vue @@ -48,7 +48,6 @@ const nav_style = ref(0); watch( () => props.footerData, (newVal, oldValue) => { - console.log(newVal); const new_content = newVal?.content || {}; const new_style = newVal?.style || {}; nav_content.value = new_content?.nav_content || []; diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index 7dace106..fe086920 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -88,7 +88,7 @@ const api_count = ref(0); const right_update = (item: any, diy: [Array], header: headerAndFooter, footer: headerAndFooter) => { diy_data_item.value = item; - // form.value.diy_data = diy; + form.value.diy_data = diy; // form.value.header = header; // form.value.footer = footer; // 生成随机id