发起get请求,返回的数据是空数组

发起get请求,返回的数据是空数组
// 获取参数的列表数据
    async getParamsData() {
      //选中的不是3级分类
     if (this.selectedCateKeys.length !== 3) {
         this.selectedCateKeys = []
         return
     }
     console.log(this.selectedCateKeys[2]);
     const { data: res } = await this.$http.get(`categories/${this.selectedCateKeys[2]}/attributes`,
         {
         params: {sel: this.activeName }
     }
     )
     if (res.meta.status!==200) {
         return this.$message.error("获取参数列表失败")
     }
     console.log(res.data);
    }

img

我想要达到的结果

img

你这个问题。貌似就不是个问题啊

返回数据 是空 。这个 只能 后端看看 数据对不对,参数 接收对不对。前端 看看 参数是否传正确

返回为空,可以和后端沟通下,看下原因时传值问题还是后台没数据