问题是后端的数据已经成功返回到前端了,但是Echarts图表一直不能被渲染,卡了一个多小时,最后问gpt才解决(gptyyds!!!)
methods: {
loadGet() {
this.$axios.get(this.$httpUrl + '/goods/count').then(res => res.data).then(res => {
console.log(res)
// this.cntdata = res.data
if (res.code == 200) {
// this.yData = res.data
// this.cntData.length=0;
for (let i = 0; i < res.data.length; i++) {
this.cntData.push(res.data[i]);
}
console.log("data = =" + this.cntData + res.data.length)
this.$message({
message: '操作成功!',
type: <

最低0.47元/天 解锁文章
1765

被折叠的 条评论
为什么被折叠?



