注册页获取班级信息

main
xy 3 weeks ago
parent aa0706c170
commit f79a917c19
  1. 6
      src/layout/loginPage.vue

@ -286,13 +286,15 @@ const props = {
checkStrictly: true,
emitPath: false,
async lazyLoad(node: any, resolve: any) {
// console.log(node);
await getFacultiesList({
primaryType: 'key',
primaryType: node.level + 1,
pid: node.value,
})
const nodes = FacultiesList.value.map((item: any) => ({
value: item.id,
label: item.title,
label: item.name,
}))
resolve(nodes)
},

Loading…
Cancel
Save