1.解决清空后双向绑定失效的问题
parent
ee5e4c19fe
commit
03faa015e4
|
|
@ -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 || [];
|
||||
|
|
|
|||
|
|
@ -218,7 +218,6 @@ watch(
|
|||
watch(
|
||||
() => props.footer,
|
||||
(newValue) => {
|
||||
console.log('main:', newValue);
|
||||
footer_nav.value = newValue;
|
||||
},
|
||||
{ deep: true }
|
||||
|
|
|
|||
Loading…
Reference in New Issue