出现Vue warn

来源:2-8 轮播图组件的使用

慕慕9563253

2021-04-15

[Vue warn]: Property "currentPageIndex" was accessed during render but is not defined on instance.
at <Slider key=0 sliders= (8) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}] >
at <RecommendPage onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {…} > >
at <RouterView>
at <App>

出现如上warn

写回答

1回答

ustbhuangyi

2021-04-15

Property "currentPageIndex" was accessed during render but is not defined on instance.

翻译这句话,然后去找原因。

1
0

Vue3开发企业级音乐Web App 明星讲师带你学大厂代码

慕课网明星讲师黄轶深度讲解 Vue3.0 ,提升的不止是Vue代码能力

2223 学习 · 1002 问题

查看课程