当前位置:网站首页>Error in render: “TypeError: data.slice is not a function“
Error in render: “TypeError: data.slice is not a function“
2022-07-26 21:10:00 【The tide does not fall】
Error message
Invalid prop: type check failed for prop "dataSource". Expected Array, got Object
Error in render: "TypeError: data.slice is not a function"

Use ant-design-vue Of table Components , Error in rendering table data
resolvent
<a-table
:columns="columnsreply"
:data-source="seldata"
:loading="loading"
childrenColumnName = "1">
</a-table>
The data bound to the table is array type , The reason why I reported an error before was because I gave seldata Direct assignment becomes object type , You need to modify the assigned code
have access to push Method , Add data to seldata in , Error resolution
Before
seldata=row
correct
seldata.push(row)
Error reporting solution
边栏推荐
- 4年软件测试工作经验,跳槽之后面试20余家公司的总结
- Buu brush inscription 4
- Redis interview questions
- Tkinter uses WPF controls
- Increased uncertainty in BTC and eth due to the approaching interest rate hike? The US economy will face more pain
- 【问题篇】将集合[‘‘,‘‘]处理成(‘‘,‘‘)
- Centos7 about Oracle RAC 11gr2 deployment disk partition
- Is it reliable, reliable and safe to open an account with a low commission for funds in Galaxy Securities
- Buu brush inscription 3
- flask 源码梗概
猜你喜欢
![Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数](/img/3d/d7276d2010f1d77a3bd572cc66eced.png)
Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数

St table, weighted and search set

【打新必读】工大科雅估值分析,供热节能产品
![[英雄星球七月集训LeetCode解题日报] 第26日 并查集](/img/f1/e63b1f35b883274ca077cbd2ab4c24.png)
[英雄星球七月集训LeetCode解题日报] 第26日 并查集

Buu brush inscription 3

09_ UE4 advanced_ Enter the next level and reserve the blood volume

What is the function of the serializable interface?

Houdini notes 2
![[must read new] Keya valuation analysis of University of technology, heating energy-saving products](/img/e8/c3ac4e5f11db58031cb9249a4ba0f4.jpg)
[must read new] Keya valuation analysis of University of technology, heating energy-saving products

4年软件测试工作经验,跳槽之后面试20余家公司的总结
随机推荐
[problem] process the set [','] into (',')
2022-7-26 第七组 抽象和接口
【打新必读】工大科雅估值分析,供热节能产品
What is the function of the serializable interface?
What kind of security problems will the server encounter?
leetcode 链表类
Green and sustainable development of data center
08_ UE4 advanced_ Start end pause menu UI
Correlation analysis between [machine learning] variables
Buu brush inscription 3
St table, weighted and search set
Introduction of JDBC
flask 源码梗概
游览器——游览器游览器缓存
[ffmpeg] add timestamp summary to video files
Houdini notes 2
腾讯为什么没能造创造出《原神》这样的游戏
Sprinboot interview questions
Build Prometheus automatic monitoring and alarm system from scratch
Using union to sort MySQL