From abc7d24a226dd8cbce69f409f9e553614322115b Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 25 Apr 2023 10:42:17 +0800 Subject: [PATCH] feat: add renderTag --- src/views/system/operatelog/operateLog.data.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/system/operatelog/operateLog.data.ts b/src/views/system/operatelog/operateLog.data.ts index a1d82c1b..2b4d5cb9 100644 --- a/src/views/system/operatelog/operateLog.data.ts +++ b/src/views/system/operatelog/operateLog.data.ts @@ -1,7 +1,6 @@ import { getIntDictOptions } from '@/utils/dict' import { BasicColumn, FormSchema, useRender } from '@/components/Table' import { DICT_TYPE } from '@/utils/dict' -import { h } from 'vue' export const columns: BasicColumn[] = [ { @@ -42,7 +41,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'resultCode', width: 180, customRender: ({ text }) => { - return h('span', text === 0 ? '成功' : '失败') + return useRender.renderTag(text === 0 ? '成功' : '失败') } }, {