优化达人页面

This commit is contained in:
2026-04-28 17:01:53 +08:00
parent d5d6495cba
commit ff25bb3922
3 changed files with 11 additions and 17 deletions

View File

@@ -129,6 +129,7 @@
<script setup>
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { ElMessage } from 'element-plus';
import { getUser } from '@/utils/storage';
import { expertInfoPage } from '@/api/account';
@@ -151,6 +152,7 @@ const tableData = ref([]);
const isRunning = ref(false);
const elapsedSeconds = ref(0);
const elapsedTimerId = ref(null);
const { t } = useI18n();
const { countryData, isLoading: isRefreshingCountry, initCountryInfo, refreshCountry, showEditCountryDialog } = useCountryInfo();
const { controlExpertCapture } = usePythonBridge();
@@ -171,7 +173,7 @@ onMounted(() => {
userInfo.value = getUser() || {};
tenantId.value = String(userInfo.value?.tenantId || '');
queryDate.value = buildTodayText();
void initCountryInfo((key) => key);
void initCountryInfo(t);
void loadList();
});
@@ -347,12 +349,12 @@ async function handleStop() {
}
async function refreshCountryFn() {
await refreshCountry((key) => key);
await refreshCountry(t);
}
async function editCountry() {
try {
await showEditCountryDialog((key) => key);
await showEditCountryDialog(t);
} catch {
// 用户取消
}