直接上结果,想看报错原因看后面
// ascending 升序 descending 降序
// prop和order都只能是string数据类型,字符串变量也可以
this.$refs.crud.$refs.table.store.commit('sort', { prop: "对应字段的prop", order: "想要改成什么样的排序" })
Crud属性文档 | Avue 官网网址
我使用了this.$refs.crud.sort没有用,甚至报错没有this.$refs.crud.sort这个方法,然后我console.log了一下this.$refs.crud
查看一下是否有这个方法,确实没有,所以报错
又因为avue-c