菜单支持多级

pull/9/head
ruibaby 6 years ago
parent f77640006e
commit b035e20c21

@ -17,8 +17,8 @@
<a-input v-model="menuToCreate.url" /> <a-input v-model="menuToCreate.url" />
</a-form-item> </a-form-item>
<a-form-item label="上级菜单:"> <a-form-item label="上级菜单:">
<a-select> <a-select v-model="menuToCreate.parentId">
<a-select-option value="1">上级菜单</a-select-option> <a-select-option v-for="(menu,index) in menus" :key="index" :value="menu.id">{{ menu.name }}</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
<a-form-item label="排序编号:"> <a-form-item label="排序编号:">

Loading…
Cancel
Save