update 删除默认顶节点
This commit is contained in:
parent
1e1f42b055
commit
4097fe1d72
@ -10,7 +10,7 @@
|
|||||||
class="mt-2"
|
class="mt-2"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
:data="categoryOptions"
|
:data="categoryOptions"
|
||||||
:props="{ value: 'id', label: 'label', children: 'children' }"
|
:props="{ label: 'label', children: 'children' }"
|
||||||
:expand-on-click-node="false"
|
:expand-on-click-node="false"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
highlight-current
|
highlight-current
|
||||||
@ -364,10 +364,7 @@ watchEffect(
|
|||||||
/** 查询流程分类下拉树结构 */
|
/** 查询流程分类下拉树结构 */
|
||||||
const getTreeselect = async () => {
|
const getTreeselect = async () => {
|
||||||
const res = await categoryTree();
|
const res = await categoryTree();
|
||||||
categoryOptions.value = [];
|
categoryOptions.value = res.data;
|
||||||
const data: CategoryTreeVO = { id: '0', parentId: '0', label: '顶级节点', weight: 0, children: [] };
|
|
||||||
data.children = res.data
|
|
||||||
categoryOptions.value.push(data);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user