因为经常忘记写法,截图下来
created() {
this.getNodeTreeByParentId();
},
methods: {
async getNodeTreeByParentId() {
let res = await getNodeTreeByParentId(this.params);
if (res.description === "成功") {
this.resultList = res.resultList;;
}
},
},