gaoluyang
2026-08-03 75242bbba28ae8902ddf86d33febb497d79e5fc3
src/views/system/notify/my/data.ts
@@ -4,9 +4,9 @@
import { h } from 'vue';
import { DICT_TYPE } from '../../../../packages/constants/src';
import { getDictOptions } from '../../../../packages/effects/hooks/src';
import { formatDateTime } from '../../../../packages/utils/src';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { formatDateTime } from '@vben/utils';
import { DictTag } from '#/components/dict-tag';
import { getRangePickerDefaultProps } from '#/utils';
@@ -131,7 +131,19 @@
    },
    {
      field: 'templateContent',
      label: '主题',
    },
    {
      field: 'templateParams',
      label: '消息内容',
      render: (val) => {
        try {
          const params = typeof val === 'string' ? JSON.parse(val) : val;
          return params?.content || '-';
        } catch {
          return String(val);
        }
      },
    },
  ];
}