migrate transaction tag list page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-11 23:09:03 +08:00
parent 6cb045453a
commit eb2b6d1002
6 changed files with 534 additions and 522 deletions
+7 -2
View File
@@ -24,9 +24,14 @@ const { tt, te } = useI18n();
const showState= ref<boolean>(false);
const messageContent = ref<string>('');
function showMessage(message: string, options: Record<string, unknown>): void {
function showMessage(message: string, options?: Record<string, unknown>): void {
showState.value = true;
messageContent.value = tt(message, options);
if (options) {
messageContent.value = tt(message, options);
} else {
messageContent.value = tt(message);
}
}
function showError(error: string | { message: string }): void {