一个组件其他页面用不报错,某个页面突然报错,
很明显这是组件里split()切割的问题,最后通过分析了解到,这是因为遍历数据的时候,第一次会得到一个空值,这个是通过输出遍历的对象知道的,最后我在使用split()的时候加了一个判断(就是判断要切割的字符串是不是存在),然后成功解决问题。
runtime-core.esm-bundler.js:38 [Vue warn]: Unhandled error during execution of render function
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next
unfold-and-conceal.vue:37 Uncaught (in promise) TypeError: Cannot read property 'slice' of undefined
at Proxy