fix(admin,api,player): 返水注单去重、操作日志 i18n 与钱包紧凑金额
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,22 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { useAdminLocale } from '../composables/useAdminLocale';
|
||||
import { useAuditLabels } from '../utils/audit-labels';
|
||||
import api from '../api';
|
||||
import AdminTableEmpty from '../components/AdminTableEmpty.vue';
|
||||
|
||||
const { t, locale, localeTag } = useAdminLocale();
|
||||
|
||||
function auditActionLabel(action: string) {
|
||||
const key = `audit.action.${action}`;
|
||||
const label = t(key);
|
||||
return label === key ? action : label;
|
||||
}
|
||||
|
||||
function auditModuleLabel(module: string) {
|
||||
const key = `audit.module.${module}`;
|
||||
const label = t(key);
|
||||
return label === key ? module : label;
|
||||
}
|
||||
const { auditActionLabel, auditModuleLabel } = useAuditLabels();
|
||||
|
||||
interface AuditRow {
|
||||
action: string;
|
||||
|
||||
Reference in New Issue
Block a user