这个为什么以id删除template div !-- 搜索栏 -- search-bar search=onSearch !-- 搜索栏 -- el-button type=warning click=cateAddShow = true新增商品分类el-button el-table row-key=id tree-props= children childre
根据代码中的逻辑,可以看出删除分类是通过调用delCate方法来实现的,该方法传入了一个参数id,即分类的id。在点击删除按钮时,会弹出确认对话框,确认后调用delCate方法来删除分类。
原文地址: https://www.cveoy.top/t/topic/hOR8 著作权归作者所有。请勿转载和采集!