|
|
@@ -114,11 +114,12 @@ const onNodeClick = async (id) => {
|
|
|
resource_form.description = data.description;
|
|
|
resource_form.perms = data.perms;
|
|
|
resource_form.component = data.component;
|
|
|
+ resource_form.orderNum = Number(data.orderNum);
|
|
|
|
|
|
is_edit_mode.value = true;
|
|
|
|
|
|
// 多余的参数
|
|
|
- resource_form.orderNum = 0;
|
|
|
+ // resource_form.orderNum = 0;
|
|
|
};
|
|
|
const onAddBtnClick = (nodeData) => {
|
|
|
resource_form.resourceId = null;
|
|
|
@@ -172,7 +173,6 @@ const resourceFromSave = async () => {
|
|
|
...resource_form,
|
|
|
menuId: is_edit_mode.value && resource_form.resourceId ? resource_form.resourceId[0] : null
|
|
|
};
|
|
|
-
|
|
|
const apiCall = is_edit_mode.value ? UpdateResource : CreateResource;
|
|
|
const { code } = await apiCall(data);
|
|
|
|