Commit b9d8e0005d8bd8bba6302f9b1756b585e9564ec1

Authored by 曾国涛
2 parents 2ebc03ac ffece678
Showing 1 changed file with 2 additions and 1 deletions
src/pages/Tickets/index.tsx
... ... @@ -300,6 +300,7 @@ const TicketsPage = () => {
300 300 render: (_text, record) => {
301 301 if (record?.id) {
302 302 const hasResolvePermission = record?.paths?.includes('RESOLVE');
  303 + const hasDeletePermission = record?.paths?.includes('DELETE');
303 304 return (
304 305 <>
305 306 {hasResolvePermission && (
... ... @@ -312,7 +313,7 @@ const TicketsPage = () =&gt; {
312 313 <ReadModal id={record.id} toReload={reload}></ReadModal>
313 314 &nbsp;
314 315 </>
315   - {hasResolvePermission && (
  316 + {hasDeletePermission && (
316 317 <>
317 318 <DeleteButton
318 319 ids={[record.id]}
... ...