Uncaught (in promise) TypeError: data.slice is not a function

来源:6-6 前后端分页功能整合

慕粉1543349145

2021-04-28

Uncaught (in promise) TypeError: data.slice is not a function
at Proxy.getLocalData (webpack-internal:///./node_modules/ant-design-vue/es/table/Table.js:504)
at Proxy.getCurrentPageData (webpack-internal:///./node_modules/ant-design-vue/es/table/Table.js:463)
at Proxy.render (webpack-internal:///./node_modules/ant-design-vue/es/table/Table.js:1380)
at renderComponentRoot (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:965)
at componentEffect (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:4461)
at Object.reactiveEffect [as update] (webpack-internal:///./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js:71)
at updateComponent (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:4353)
at processComponent (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:4288)
at patch (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:3902)
at componentEffect (webpack-internal:///./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js:4470)

访问网页,后端sql数据能正常访问,打开控制台出现以上错误,请问是哪里有问题?

写回答

2回答

慕前端8419733

2021-10-03

我也是,咋解决的???

0
0

甲蛙

2021-04-29

这个问题好了吗?从这个日志看不出来。

可以看下代码在哪里写了data.slice,把data打印出来看是什么

0
0

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程