注册页获取班级信息

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

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

Loading…
Cancel
Save