1.解决清空后双向绑定失效的问题

v1.0.0
sws 2024-09-06 18:11:03 +08:00
parent ee5e4c19fe
commit 03faa015e4
2 changed files with 0 additions and 2 deletions

View File

@ -48,7 +48,6 @@ const nav_style = ref(0);
watch(
() => props.footerData,
(newVal, oldValue) => {
console.log('footer-nav-index:', newVal);
const new_content = newVal?.content || {};
const new_style = newVal?.style || {};
nav_content.value = new_content?.nav_content || [];

View File

@ -218,7 +218,6 @@ watch(
watch(
() => props.footer,
(newValue) => {
console.log('main:', newValue);
footer_nav.value = newValue;
},
{ deep: true }