feat: 新增按钮级权限指令 v-permission 与 Axios 全局防重复提交机制

This commit is contained in:
DXC
2026-03-10 11:59:41 +08:00
parent 3ab47ab2fb
commit 525acae423
4 changed files with 105 additions and 6 deletions

View File

@ -219,7 +219,7 @@
<el-button link type="primary" size="default" @click="handleUpdate(row)">编辑</el-button>
<el-popconfirm title="确定删除该条记录吗不可恢复" @confirm="handleDelete(row)" width="220">
<template #reference>
<el-button link type="danger" size="default">删除</el-button>
<el-button link type="danger" size="default" v-permission="'inbound_buy:delete'">删除</el-button>
</template>
</el-popconfirm>
</template>