You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
先贴代码
App.vue
Comp.vue
BulletList.vue
问题是这样的,我在写一个列表的组件,其中有些信息是非响应式的,
BulletList
这个组件暴露了一个clearOne
方法,我通过父组件调用这个方法去修改子组件BulletList
里的一些内容,但是在渲染函数中返回值时候会Array.splice()
的影响,我明明返回空的ul元素(h('ul',{class:'marked-vue-orderList'},[])
),诡异的是为什么页面渲染的结果总是跟上面的inlineContent.splice(0,2)
有关。inlineContent
删除什么页面就渲染什么Beta Was this translation helpful? Give feedback.
All reactions