|
@@ -88,6 +88,8 @@ const fields: Ref<any> = ref([
|
|
|
{ label: '菜单名称', model: 'name' },
|
|
|
{ label: '菜单类型', model: 'type', type: 'select' },
|
|
|
{ label: '父级菜单', model: 'parent_id', type: 'select' },
|
|
|
+ { label: '路由地址', model: 'path' },
|
|
|
+ { label: '组件地址', model: 'component' },
|
|
|
{ label: '顺序', model: 'sort', type: 'number' },
|
|
|
{ label: '图标', model: 'icon', type: 'select' },
|
|
|
{ label: '是否使用', model: 'is_use', type: 'select' },
|
|
@@ -177,6 +179,7 @@ const getAllChild = (children) => {
|
|
|
// 提交保存
|
|
|
const toSave = async (data) => {
|
|
|
let res: IQueryResult;
|
|
|
+ delete data.parent_name;
|
|
|
if (data._id) res = await menusAxios.update(data);
|
|
|
else res = await menusAxios.create(data);
|
|
|
if (res.errcode == '0') {
|