diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index bf50ef5a..5770687a 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -89,7 +89,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:codegen:delete', popConfirm: { diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 9e0bbeda..e89eac57 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'infra:config:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:config:delete', popConfirm: { diff --git a/src/views/infra/dataSourceConfig/index.vue b/src/views/infra/dataSourceConfig/index.vue index dd4d720c..05c5863e 100644 --- a/src/views/infra/dataSourceConfig/index.vue +++ b/src/views/infra/dataSourceConfig/index.vue @@ -66,7 +66,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), ifShow: record.id !== 0, auth: 'infra:data-source-config:delete', diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue index 8e51026f..797b7ee2 100644 --- a/src/views/infra/file/index.vue +++ b/src/views/infra/file/index.vue @@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:file:delete', popConfirm: { diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue index db857b84..bb050126 100644 --- a/src/views/infra/fileConfig/index.vue +++ b/src/views/infra/fileConfig/index.vue @@ -88,7 +88,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:file-config:delete', popConfirm: { diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index 8d74b769..0c167fcc 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -122,7 +122,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:job:delete', popConfirm: { diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue index 0cdb7de5..3d8bb355 100644 --- a/src/views/member/point/config/index.vue +++ b/src/views/member/point/config/index.vue @@ -1,7 +1,7 @@