iview After [Bug Report] updates the iView from 2.4.0 to the latest version (2.7.4), the Tree component is wrong, and the data is not rendered (without updating the component library's previous OK).

bt1cpqcv  于 2022-10-24  发布在  其他
关注(0)|答案(4)|浏览(234)

Environment

win10,chrome 62.0.3202.94,vue2.4.2

http://localhost:8888/#/

Steps to reproduce

按照官网的数据结构渲染

What is expected?

展示数据

What is actually happening?

空白页

[Vue warn]: Error in render function: "TypeError: Cannot read property '_c' of undefined"

found in

--->

at src\components\Tree\Tree.vue

at src\components\modal\modal.vue
at src\pages\userManagement\userManagementList.vue
at src\components\Home\home.vue
at src\App.vue

warn @ vue.esm.js?65d7:476
handleError @ vue.esm.js?65d7:559
Vue._render @ vue.esm.js?65d7:4197
updateComponent @ vue.esm.js?65d7:2574
get @ vue.esm.js?65d7:2917
run @ vue.esm.js?65d7:2994
flushSchedulerQueue @ vue.esm.js?65d7:2760
(anonymous) @ vue.esm.js?65d7:698
nextTickHandler @ vue.esm.js?65d7:645
Async Call
timerFunc @ vue.esm.js?65d7:660
queueNextTick @ vue.esm.js?65d7:708
queueWatcher @ vue.esm.js?65d7:2847
update @ vue.esm.js?65d7:2984
notify @ vue.esm.js?65d7:775
reactiveSetter @ vue.esm.js?65d7:997
proxySetter @ vue.esm.js?65d7:3109
(anonymous) @ userManagementList.vue?0049:168
Promise resolved (async)
getOfficeTree @ userManagementList.vue?0049:159
boundFn @ vue.esm.js?65d7:180
invoker @ vue.esm.js?65d7:1821
Vue.$emit @ vue.esm.js?65d7:2331
onFocus @ div.vue?1b99:267
boundFn @ vue.esm.js?65d7:179
invoker @ vue.esm.js?65d7:1821
Vue.$emit @ vue.esm.js?65d7:2331
handleFocus @ iview.js?5654:9124
boundFn @ vue.esm.js?65d7:179
invoker @ vue.esm.js?65d7:1821
vue.esm.js?65d7:563 TypeError: Cannot read property '_c' of undefined
at Object.render (Tree.vue?1212:4)
at render (iview.js?5654:33011)
at createFunctionalComponent (vue.esm.js?65d7:3521)
at createComponent (vue.esm.js?65d7:3680)
at _createElement (vue.esm.js?65d7:3859)
at createElement (vue.esm.js?65d7:3798)
at vm._c (vue.esm.js?65d7:4138)
at Proxy.render (iview.js?5654:33058)
at VueComponent.Vue._render (vue.esm.js?65d7:4195)
at VueComponent.updateComponent (vue.esm.js?65d7:2574)

mjqavswn

mjqavswn1#

vue.esm.js?65d7:563 TypeError: Cannot read property '_c' of undefined
at Object.render (Tree.vue?1212:4)
at render (iview.js?5654:33011)
at createFunctionalComponent (vue.esm.js?65d7:3521)
at createComponent (vue.esm.js?65d7:3680)
at _createElement (vue.esm.js?65d7:3859)
at createElement (vue.esm.js?65d7:3798)
at vm._c (vue.esm.js?65d7:4138)
at Proxy.render (iview.js?5654:33058)
at VueComponent.Vue._render (vue.esm.js?65d7:4195)
at VueComponent.updateComponent (vue.esm.js?65d7:2574)

omjgkv6w

omjgkv6w2#

vue 还是2.4.2? 升级到最新看看吧

hgqdbh6s

hgqdbh6s3#

vue升级了也不行

cqoc49vn

cqoc49vn4#

Translation of this issue:

Environment

Win10, chrome 62.0.3202.94, vue2.4.2

http://localhost:8888/#/

Steps to reproduce

Rendering according to the data structure of the official network

What is expected?

Display data

What is actually happening?

Blank page

[Vue warn]: Error in render function: "TypeError: Cannot read property'_c'of)
Found in
I

at src\components\Tree\Tree.vue

at src\components\modal\modal.vue
at src\pages\userManagement\userManagementList.vue
at src\components\Home\home.vue
at src\App.vue

Warn @ vue.esm.js? 65d7:476
HandleError @ vue.esm.js? 65d7:559
Vue._render @ vue.esm.js? 65d7:4197
UpdateComponent @ vue.esm.js? 65d7:2574
Get @ vue.esm.js? 65d7:2917
Run @ vue.esm.js? 65d7:2994
FlushSchedulerQueue @ vue.esm.js? 65d7:2760
(anonymous) @ vue.esm.js? 65d7:698
NextTickHandler @ vue.esm.js? 65d7:645
Async Call
TimerFunc @ vue.esm.js? 65d7:660
QueueNextTick @ vue.esm.js? 65d7:708
QueueWatcher @ vue.esm.js? 65d7:2847
Update @ vue.esm.js? 65d7:2984
Notify @ vue.esm.js? 65d7:775
ReactiveSetter @ vue.esm.js? 65d7:997
ProxySetter @ vue.esm.js? 65d7:3109
(anonymous) @ userManagementList.vue? 0049:168
Promise resolved (async)
GetOfficeTree @ userManagementList.vue? 0049:159
BoundFn @ vue.esm.js? 65d7:180
Invoker @ vue.esm.js? 65d7:1821
Vue.$emit @ vue.esm.js? 65d7:2331
OnFocus @ div.vue? 1b99:267
BoundFn @ vue.esm.js? 65d7:179
Invoker @ vue.esm.js? 65d7:1821
Vue.$emit @ vue.esm.js? 65d7:2331
HandleFocus @ iview.js? 5654:9124
BoundFn @ vue.esm.js? 65d7:179
Invoker @ vue.esm.js? 65d7:1821
Vue.esm.js? 65d7:563 TypeError: Cannot read property'_c'of undefined
At Object.render (Tree.vue? 1212:4)
At render (iview.js? 5654:33011)
At createFunctionalComponent (vue.esm.js? 65d7:3521)
At createComponent (vue.esm.js? 65d7:3680)
At _createElement (vue.esm.js? 65d7:3859)
At createElement (vue.esm.js? 65d7:3798)
At vm._c (vue.esm.js? 65d7:4138)
At Proxy.render (iview.js? 5654:33058)
At VueComponent.Vue._render (vue.esm.js? 65d7:4195)
At VueComponent.updateComponent (vue.esm.js? 65d7:2574)

相关问题